7 releases

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

#304 in #asynchronous

Download history 30359/week @ 2023-02-06 31246/week @ 2023-02-13 37322/week @ 2023-02-20 43446/week @ 2023-02-27 33867/week @ 2023-03-06 32361/week @ 2023-03-13 29575/week @ 2023-03-20 28885/week @ 2023-03-27 27876/week @ 2023-04-03 27981/week @ 2023-04-10 25675/week @ 2023-04-17 28635/week @ 2023-04-24 28123/week @ 2023-05-01 27269/week @ 2023-05-08 29600/week @ 2023-05-15 29517/week @ 2023-05-22

116,707 downloads per month
Used in fewer than 34 crates

MIT license

190KB
3.5K 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
~39K SLoC