Add muxing trait and architecture

This commit is contained in:
Pierre Krieger
2017-11-28 12:20:28 +01:00
parent 710dec3110
commit b311d66b58
8 changed files with 276 additions and 20 deletions

View File

@ -24,11 +24,16 @@ extern crate bytes;
#[macro_use]
extern crate futures;
extern crate multistream_select;
extern crate smallvec;
extern crate tokio_io;
/// Multi-address re-export.
pub extern crate multiaddr;
mod connection_reuse;
pub mod muxing;
pub mod transport;
pub use self::connection_reuse::ConnectionReuse;
pub use self::muxing::StreamMuxer;
pub use self::transport::{ConnectionUpgrade, PlainText, Transport, UpgradedNode, OrUpgrade};