Skip to main content

foctet_mux/
lib.rs

1// Stream module
2pub mod stream;
3// Session module
4pub mod session;
5
6// Stream ID type
7pub use foctet_core::stream::StreamId;
8// Session ID type
9pub use foctet_core::connection::SessionId;
10
11pub use crate::{session::Session, stream::LogicalStream};
12
13// Latest Protocol Version
14pub const PROTOCOL_VERSION: u8 = 0;
15// The 0 ID is reserved to represent the session.
16pub const RESERVED_STREAM_ID: StreamId = StreamId(0);