@@ -2119,7 +2119,7 @@ impl Socket {
21192119 target_os = "vita"
21202120 ) )
21212121 ) ) ]
2122- pub fn keepalive_time ( & self ) -> io:: Result < Duration > {
2122+ pub fn tcp_keepalive_time ( & self ) -> io:: Result < Duration > {
21232123 sys:: keepalive_time ( self . as_raw ( ) )
21242124 }
21252125
@@ -2146,7 +2146,7 @@ impl Socket {
21462146 target_os = "cygwin" ,
21472147 )
21482148 ) ) ]
2149- pub fn keepalive_interval ( & self ) -> io:: Result < Duration > {
2149+ pub fn tcp_keepalive_interval ( & self ) -> io:: Result < Duration > {
21502150 unsafe {
21512151 getsockopt :: < c_int > ( self . as_raw ( ) , sys:: IPPROTO_TCP , sys:: TCP_KEEPINTVL )
21522152 . map ( |secs| Duration :: from_secs ( secs as u64 ) )
@@ -2177,7 +2177,7 @@ impl Socket {
21772177 target_os = "windows" ,
21782178 )
21792179 ) ) ]
2180- pub fn keepalive_retries ( & self ) -> io:: Result < u32 > {
2180+ pub fn tcp_keepalive_retries ( & self ) -> io:: Result < u32 > {
21812181 unsafe {
21822182 getsockopt :: < c_int > ( self . as_raw ( ) , sys:: IPPROTO_TCP , sys:: TCP_KEEPCNT )
21832183 . map ( |retries| retries as u32 )
@@ -2232,7 +2232,7 @@ impl Socket {
22322232 /// For more information about this option, see [`set_nodelay`].
22332233 ///
22342234 /// [`set_nodelay`]: Socket::set_nodelay
2235- pub fn nodelay ( & self ) -> io:: Result < bool > {
2235+ pub fn tcp_nodelay ( & self ) -> io:: Result < bool > {
22362236 unsafe {
22372237 getsockopt :: < Bool > ( self . as_raw ( ) , sys:: IPPROTO_TCP , sys:: TCP_NODELAY )
22382238 . map ( |nodelay| nodelay != 0 )
@@ -2246,7 +2246,7 @@ impl Socket {
22462246 /// small amount of data. When not set, data is buffered until there is a
22472247 /// sufficient amount to send out, thereby avoiding the frequent sending of
22482248 /// small packets.
2249- pub fn set_nodelay ( & self , nodelay : bool ) -> io:: Result < ( ) > {
2249+ pub fn set_tcp_nodelay ( & self , nodelay : bool ) -> io:: Result < ( ) > {
22502250 unsafe {
22512251 setsockopt (
22522252 self . as_raw ( ) ,
0 commit comments