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
142,747 downloads per month
Used in fewer than 33 crates
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
TcpStream
s.
Dependencies
~3MB
~55K SLoC