2023-05-06 05:41:24 +00:00
|
|
|
mod connection;
|
|
|
|
|
pub use connection::Connection;
|
|
|
|
|
|
|
|
|
|
pub mod frame;
|
2023-05-08 10:25:09 +00:00
|
|
|
pub use frame::ClientFrames;
|
2023-05-06 05:41:24 +00:00
|
|
|
|
|
|
|
|
pub mod server;
|
|
|
|
|
|
|
|
|
|
mod shutdown;
|
|
|
|
|
use shutdown::Shutdown;
|
|
|
|
|
|
2023-05-07 06:32:07 +00:00
|
|
|
pub const DEFAULT_IP: &'static str = "0.0.0.0";
|
2023-05-06 05:41:24 +00:00
|
|
|
pub const DEFAULT_PORT: u16 = 1222;
|
|
|
|
|
|
|
|
|
|
pub type Error = Box<dyn std::error::Error + Send + Sync>;
|
|
|
|
|
pub type Result<T> = std::result::Result<T, Error>;
|