6 releases

✓ Uses Rust 2018 edition

0.2.0-alpha.1 Aug 8, 2019
0.1.3 Jan 7, 2019
0.1.2 Sep 27, 2018
0.1.1 Aug 7, 2018
0.0.0 Feb 1, 2018

#26 in Asynchronous

Download history 47528/week @ 2019-04-25 47575/week @ 2019-05-02 52415/week @ 2019-05-09 56227/week @ 2019-05-16 58310/week @ 2019-05-23 62781/week @ 2019-05-30 62581/week @ 2019-06-06 67942/week @ 2019-06-13 66721/week @ 2019-06-20 64046/week @ 2019-06-27 55740/week @ 2019-07-04 63798/week @ 2019-07-11 64099/week @ 2019-07-18 66545/week @ 2019-07-25 66833/week @ 2019-08-01

267,148 downloads per month
Used in 1,233 crates (67 directly)

MIT license

175KB
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

~2.5MB
~43K SLoC