33 releases
0.10.2 | Aug 5, 2022 |
---|---|
0.10.1 | Mar 14, 2022 |
0.10.1-rc.1 | Feb 25, 2022 |
0.9.0 | Feb 16, 2021 |
0.1.0 | Nov 9, 2018 |
#923 in Network programming
106,048 downloads per month
Used in 66 crates
(5 directly)
135KB
3K
SLoC
Yamux
A stream multiplexer over reliable, ordered connections such as TCP/IP. Implements https://github.com/hashicorp/yamux/blob/master/spec.md
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
lib.rs
:
This crate implements the Yamux specification.
It multiplexes independent I/O streams over reliable, ordered connections, such as TCP/IP.
The three primary objects, clients of this crate interact with, are:
- [
Connection
], which wraps the underlying I/O resource, e.g. a socket, - [
Stream
], which implements [futures::io::AsyncRead
] and [futures::io::AsyncWrite
], and - [
Control
], to asynchronously control the [Connection
].
Dependencies
~1.7–6.5MB
~113K SLoC