forked from M-Labs/zynq-rs
libasync: provide get/set ack_delay (new in smoltcp 0.7.0)
This commit is contained in:
parent
a2416f26a0
commit
ba252e72da
@ -262,6 +262,14 @@ impl TcpStream {
|
|||||||
pub fn set_timeout(&mut self, duration: Option<Duration>) {
|
pub fn set_timeout(&mut self, duration: Option<Duration>) {
|
||||||
self.with_socket(|mut socket| socket.set_timeout(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 {
|
impl Drop for TcpStream {
|
||||||
|
Loading…
Reference in New Issue
Block a user