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

#13 in #tcp-listener

Download history 31131/week @ 2023-11-26 30283/week @ 2023-12-03 29991/week @ 2023-12-10 24482/week @ 2023-12-17 14783/week @ 2023-12-24 22047/week @ 2023-12-31 30178/week @ 2024-01-07 27757/week @ 2024-01-14 27614/week @ 2024-01-21 29477/week @ 2024-01-28 30043/week @ 2024-02-04 28821/week @ 2024-02-11 36704/week @ 2024-02-18 37547/week @ 2024-02-25 36975/week @ 2024-03-03 15780/week @ 2024-03-10

129,361 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