Home
last modified time | relevance | path

Searched refs:set_linger (Results 1 - 4 of 4) sorted by relevance

/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/sys/tcp/
H A Dstream.rs377 /// stream.set_linger(None).expect("Sets linger fail."); in fmt()
381 pub fn set_linger(&self, linger: Option<Duration>) -> io::Result<()> { in fmt() functions
382 self.source.set_linger(linger) in fmt()
704 stream.set_linger(Some(Duration::from_secs(1))).unwrap(); in ut_tcp_stream_basic()
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/tcp/
H A Dstream.rs152 /// stream.set_linger(None).expect("Sets linger fail.");
154 pub fn set_linger(&self, linger: Option<Duration>) -> io::Result<()> { in set_linger() functions
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/windows/tcp/
H A Dstream.rs189 /// stream.set_linger(None).expect("Sets linger fail.");
191 pub fn set_linger(&self, linger: Option<Duration>) -> io::Result<()> { in set_linger() functions
/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/
H A Dtcp_test.rs138 .set_linger(Some(std::time::Duration::from_secs(1))) in sdv_tcp_stream_basic()

Completed in 3 milliseconds