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

#55 in #tcp-stream

Download history 35899/week @ 2024-07-23 35777/week @ 2024-07-30 38697/week @ 2024-08-06 33081/week @ 2024-08-13 28778/week @ 2024-08-20 30583/week @ 2024-08-27 29369/week @ 2024-09-03 31165/week @ 2024-09-10 25574/week @ 2024-09-17 34495/week @ 2024-09-24 38932/week @ 2024-10-01 34802/week @ 2024-10-08 39886/week @ 2024-10-15 34613/week @ 2024-10-22 32843/week @ 2024-10-29 31329/week @ 2024-11-05

144,641 downloads per month
Used in fewer than 32 crates

MIT license

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

~3MB
~56K SLoC