5 releases

0.1.3 Jan 7, 2019
0.1.2 Sep 27, 2018
0.1.1 Aug 7, 2018
0.1.0 Mar 23, 2018
0.0.0 Feb 1, 2018

#14 in Asynchronous

Download history 44680/week @ 2019-01-22 44031/week @ 2019-01-29 43732/week @ 2019-02-05 48366/week @ 2019-02-12 49827/week @ 2019-02-19 54342/week @ 2019-02-26 53116/week @ 2019-03-05 54547/week @ 2019-03-12 53126/week @ 2019-03-19 49893/week @ 2019-03-26 56052/week @ 2019-04-02 59392/week @ 2019-04-09 49138/week @ 2019-04-16 49381/week @ 2019-04-23 47668/week @ 2019-04-30

130,352 downloads per month
Used in 787 crates (58 directly)

MIT license

247KB
4K SLoC

tokio-tcp

TCP bindings for tokio.

Documentation

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 ConnectFuture. ConnectFuture implements 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

~3.5MB
~51K SLoC