Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1441bf9a1b |
@@ -35,6 +35,11 @@ impl PacketTransportTcpWithCobs {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Calls [std::net::TcpStream::set_read_timeout].
|
||||||
|
pub fn set_read_timeout(&mut self, duration: Option<Duration>) -> std::io::Result<()> {
|
||||||
|
self.tcp_stream.set_read_timeout(duration)
|
||||||
|
}
|
||||||
|
|
||||||
/// Send a packet.
|
/// Send a packet.
|
||||||
///
|
///
|
||||||
/// It encodes the packet using COBS encoding before sending it over the TCP stream.
|
/// It encodes the packet using COBS encoding before sending it over the TCP stream.
|
||||||
|
|||||||
Reference in New Issue
Block a user