#tcp-stream #tcp-listener #cancellation #timeout #blocking-io #mio

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

#19 in #tcp-listener

38 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
~60K SLoC