7 releases

✓ Uses Rust 2018 edition

0.2.0-alpha.1 Aug 8, 2019
0.1.4 Feb 5, 2020
0.1.3 Jan 7, 2019
0.1.2 Sep 27, 2018
0.0.0 Feb 1, 2018
Download history 91587/week @ 2019-12-15 52637/week @ 2019-12-22 58802/week @ 2019-12-29 88763/week @ 2020-01-05 89105/week @ 2020-01-12 82496/week @ 2020-01-19 82341/week @ 2020-01-26 88299/week @ 2020-02-02 88590/week @ 2020-02-09 80517/week @ 2020-02-16 77122/week @ 2020-02-23 79548/week @ 2020-03-01 79141/week @ 2020-03-08 76489/week @ 2020-03-15 79735/week @ 2020-03-22 79250/week @ 2020-03-29

357,573 downloads per month
Used in 1,192 crates (34 directly)

MIT license

180KB
3K SLoC

tokio-tcp

TCP bindings for tokio.

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Tokio by you, shall be licensed as MIT, without any additional terms or conditions.


lib.rs:

TCP bindings for tokio.

This module contains the TCP networking types, similar to the standard library, which can be used to implement networking protocols.

Connecting to an address, via TCP, can be done using TcpStream's connect method, which returns a future which returns a TcpStream.

To listen on an address TcpListener can be used. TcpListener's incoming method can be used to accept new connections. It return the Incoming struct, which implements a stream which returns TcpStreams.

Dependencies

~2MB
~31K SLoC