@@ -1187,7 +1187,7 @@ fn into_timeval(duration: Option<Duration>) -> libc::timeval {
11871187 feature = "all" ,
11881188 not( any( target_os = "haiku" , target_os = "openbsd" , target_os = "vita" ) )
11891189) ) ]
1190- pub ( crate ) fn keepalive_time ( fd : Socket ) -> io:: Result < Duration > {
1190+ pub ( crate ) fn tcp_keepalive_time ( fd : Socket ) -> io:: Result < Duration > {
11911191 unsafe {
11921192 getsockopt :: < c_int > ( fd, IPPROTO_TCP , KEEPALIVE_TIME )
11931193 . map ( |secs| Duration :: from_secs ( secs as u64 ) )
@@ -1569,7 +1569,7 @@ impl crate::Socket {
15691569 ///
15701570 /// [`set_mss`]: crate::Socket::set_mss
15711571 #[ 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 > {
15731573 unsafe {
15741574 getsockopt :: < c_int > ( self . as_raw ( ) , libc:: IPPROTO_TCP , libc:: TCP_MAXSEG )
15751575 . map ( |mss| mss as u32 )
@@ -1581,7 +1581,7 @@ impl crate::Socket {
15811581 /// The `TCP_MAXSEG` option denotes the TCP Maximum Segment Size and is only
15821582 /// available on TCP sockets.
15831583 #[ 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 < ( ) > {
15851585 unsafe {
15861586 setsockopt (
15871587 self . as_raw ( ) ,
@@ -1697,7 +1697,7 @@ impl crate::Socket {
16971697 feature = "all" ,
16981698 any( target_os = "android" , target_os = "fuchsia" , target_os = "linux" )
16991699 ) ) ]
1700- pub fn cork ( & self ) -> io:: Result < bool > {
1700+ pub fn tcp_cork ( & self ) -> io:: Result < bool > {
17011701 unsafe {
17021702 getsockopt :: < Bool > ( self . as_raw ( ) , libc:: IPPROTO_TCP , libc:: TCP_CORK )
17031703 . map ( |cork| cork != 0 )
@@ -1714,7 +1714,7 @@ impl crate::Socket {
17141714 feature = "all" ,
17151715 any( target_os = "android" , target_os = "fuchsia" , target_os = "linux" )
17161716 ) ) ]
1717- pub fn set_cork ( & self , cork : bool ) -> io:: Result < ( ) > {
1717+ pub fn set_tcp_cork ( & self , cork : bool ) -> io:: Result < ( ) > {
17181718 unsafe {
17191719 setsockopt (
17201720 self . as_raw ( ) ,
@@ -1739,7 +1739,7 @@ impl crate::Socket {
17391739 target_os = "cygwin" ,
17401740 )
17411741 ) ) ]
1742- pub fn quickack ( & self ) -> io:: Result < bool > {
1742+ pub fn tcp_quickack ( & self ) -> io:: Result < bool > {
17431743 unsafe {
17441744 getsockopt :: < Bool > ( self . as_raw ( ) , libc:: IPPROTO_TCP , libc:: TCP_QUICKACK )
17451745 . map ( |quickack| quickack != 0 )
@@ -1761,7 +1761,7 @@ impl crate::Socket {
17611761 target_os = "cygwin" ,
17621762 )
17631763 ) ) ]
1764- pub fn set_quickack ( & self , quickack : bool ) -> io:: Result < ( ) > {
1764+ pub fn set_tcp_quickack ( & self , quickack : bool ) -> io:: Result < ( ) > {
17651765 unsafe {
17661766 setsockopt (
17671767 self . as_raw ( ) ,
@@ -1781,7 +1781,7 @@ impl crate::Socket {
17811781 feature = "all" ,
17821782 any( target_os = "android" , target_os = "fuchsia" , target_os = "linux" )
17831783 ) ) ]
1784- pub fn thin_linear_timeouts ( & self ) -> io:: Result < bool > {
1784+ pub fn tcp_thin_linear_timeouts ( & self ) -> io:: Result < bool > {
17851785 unsafe {
17861786 getsockopt :: < Bool > (
17871787 self . as_raw ( ) ,
@@ -1801,7 +1801,7 @@ impl crate::Socket {
18011801 feature = "all" ,
18021802 any( target_os = "android" , target_os = "fuchsia" , target_os = "linux" )
18031803 ) ) ]
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 < ( ) > {
18051805 unsafe {
18061806 setsockopt (
18071807 self . as_raw ( ) ,
0 commit comments