Browse Source

libasync: provide get/set ack_delay (new in smoltcp 0.7.0)

master
Astro 8 months ago
parent
commit
ba252e72da
  1. 8
      libasync/src/smoltcp/tcp_stream.rs

8
libasync/src/smoltcp/tcp_stream.rs

@ -262,6 +262,14 @@ impl TcpStream {
pub fn set_timeout(&mut self, duration: Option<Duration>) {
self.with_socket(|mut socket| socket.set_timeout(duration));
}
pub fn ack_delay(&self) -> Option<Duration> {
self.with_socket(|socket| socket.ack_delay())
}
pub fn set_ack_delay(&mut self, duration: Option<Duration>) {
self.with_socket(|mut socket| socket.set_ack_delay(duration));
}
}
impl Drop for TcpStream {

Loading…
Cancel
Save