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

#15 in #tcp-listener

Download history 38296/week @ 2024-03-14 35009/week @ 2024-03-21 36950/week @ 2024-03-28 30424/week @ 2024-04-04 33819/week @ 2024-04-11 32514/week @ 2024-04-18 36961/week @ 2024-04-25 35331/week @ 2024-05-02 38434/week @ 2024-05-09 36664/week @ 2024-05-16 34507/week @ 2024-05-23 39985/week @ 2024-05-30 41202/week @ 2024-06-06 35570/week @ 2024-06-13 33498/week @ 2024-06-20 24684/week @ 2024-06-27

142,747 downloads per month
Used in fewer than 33 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
~55K SLoC