#cancellation #timeout #async-io #io-operations #tcp-stream #mio #tcp-listener

mtcp-rs

Provides a “blocking” implementation of TcpListener and TcpStream with proper timeout and cancellation support

12 releases

0.1.11 Feb 14, 2023
0.1.10 Feb 13, 2023
0.1.5 Jan 27, 2023

#3 in #cancellation

48 downloads per month

Custom license

43KB
623 lines

mtcp – Metal TCP

Crates.io Unlicense Timeout Cancellation

mtcp provides a “blocking” implementation of TcpListener and TcpStream with proper timeout and cancellation support. The "blocking" I/O operations in mtcp are emulated via non-blocking operations, using the mio library.

Crates.io:
https://crates.io/crates/mtcp-rs

API Documentation:
https://docs.rs/mtcp-rs/latest/index.html

Examples:
https://github.com/dEajL3kA/mtcp/tree/master/examples

Discuss:
https://users.rust-lang.org/t/87983

Dependencies

~0.5–11MB
~65K SLoC