@@ -1187,7 +1187,7 @@ fn into_timeval(duration: Option<Duration>) -> libc::timeval {
1187
1187
feature = "all" ,
1188
1188
not( any( target_os = "haiku" , target_os = "openbsd" , target_os = "vita" ) )
1189
1189
) ) ]
1190
- pub ( crate ) fn keepalive_time ( fd : Socket ) -> io:: Result < Duration > {
1190
+ pub ( crate ) fn tcp_keepalive_time ( fd : Socket ) -> io:: Result < Duration > {
1191
1191
unsafe {
1192
1192
getsockopt :: < c_int > ( fd, IPPROTO_TCP , KEEPALIVE_TIME )
1193
1193
. map ( |secs| Duration :: from_secs ( secs as u64 ) )
@@ -1569,7 +1569,7 @@ impl crate::Socket {
1569
1569
///
1570
1570
/// [`set_mss`]: crate::Socket::set_mss
1571
1571
#[ cfg( all( feature = "all" , not( target_os = "redox" ) ) ) ]
1572
- pub fn mss ( & self ) -> io:: Result < u32 > {
1572
+ pub fn tcp_mss ( & self ) -> io:: Result < u32 > {
1573
1573
unsafe {
1574
1574
getsockopt :: < c_int > ( self . as_raw ( ) , libc:: IPPROTO_TCP , libc:: TCP_MAXSEG )
1575
1575
. map ( |mss| mss as u32 )
@@ -1581,7 +1581,7 @@ impl crate::Socket {
1581
1581
/// The `TCP_MAXSEG` option denotes the TCP Maximum Segment Size and is only
1582
1582
/// available on TCP sockets.
1583
1583
#[ cfg( all( feature = "all" , not( target_os = "redox" ) ) ) ]
1584
- pub fn set_mss ( & self , mss : u32 ) -> io:: Result < ( ) > {
1584
+ pub fn set_tcp_mss ( & self , mss : u32 ) -> io:: Result < ( ) > {
1585
1585
unsafe {
1586
1586
setsockopt (
1587
1587
self . as_raw ( ) ,
@@ -1697,7 +1697,7 @@ impl crate::Socket {
1697
1697
feature = "all" ,
1698
1698
any( target_os = "android" , target_os = "fuchsia" , target_os = "linux" )
1699
1699
) ) ]
1700
- pub fn cork ( & self ) -> io:: Result < bool > {
1700
+ pub fn tcp_cork ( & self ) -> io:: Result < bool > {
1701
1701
unsafe {
1702
1702
getsockopt :: < Bool > ( self . as_raw ( ) , libc:: IPPROTO_TCP , libc:: TCP_CORK )
1703
1703
. map ( |cork| cork != 0 )
@@ -1714,7 +1714,7 @@ impl crate::Socket {
1714
1714
feature = "all" ,
1715
1715
any( target_os = "android" , target_os = "fuchsia" , target_os = "linux" )
1716
1716
) ) ]
1717
- pub fn set_cork ( & self , cork : bool ) -> io:: Result < ( ) > {
1717
+ pub fn set_tcp_cork ( & self , cork : bool ) -> io:: Result < ( ) > {
1718
1718
unsafe {
1719
1719
setsockopt (
1720
1720
self . as_raw ( ) ,
@@ -1739,7 +1739,7 @@ impl crate::Socket {
1739
1739
target_os = "cygwin" ,
1740
1740
)
1741
1741
) ) ]
1742
- pub fn quickack ( & self ) -> io:: Result < bool > {
1742
+ pub fn tcp_quickack ( & self ) -> io:: Result < bool > {
1743
1743
unsafe {
1744
1744
getsockopt :: < Bool > ( self . as_raw ( ) , libc:: IPPROTO_TCP , libc:: TCP_QUICKACK )
1745
1745
. map ( |quickack| quickack != 0 )
@@ -1761,7 +1761,7 @@ impl crate::Socket {
1761
1761
target_os = "cygwin" ,
1762
1762
)
1763
1763
) ) ]
1764
- pub fn set_quickack ( & self , quickack : bool ) -> io:: Result < ( ) > {
1764
+ pub fn set_tcp_quickack ( & self , quickack : bool ) -> io:: Result < ( ) > {
1765
1765
unsafe {
1766
1766
setsockopt (
1767
1767
self . as_raw ( ) ,
@@ -1781,7 +1781,7 @@ impl crate::Socket {
1781
1781
feature = "all" ,
1782
1782
any( target_os = "android" , target_os = "fuchsia" , target_os = "linux" )
1783
1783
) ) ]
1784
- pub fn thin_linear_timeouts ( & self ) -> io:: Result < bool > {
1784
+ pub fn tcp_thin_linear_timeouts ( & self ) -> io:: Result < bool > {
1785
1785
unsafe {
1786
1786
getsockopt :: < Bool > (
1787
1787
self . as_raw ( ) ,
@@ -1801,7 +1801,7 @@ impl crate::Socket {
1801
1801
feature = "all" ,
1802
1802
any( target_os = "android" , target_os = "fuchsia" , target_os = "linux" )
1803
1803
) ) ]
1804
- pub fn set_thin_linear_timeouts ( & self , timeouts : bool ) -> io:: Result < ( ) > {
1804
+ pub fn set_tcp_thin_linear_timeouts ( & self , timeouts : bool ) -> io:: Result < ( ) > {
1805
1805
unsafe {
1806
1806
setsockopt (
1807
1807
self . as_raw ( ) ,
0 commit comments