byte-engine-betp 0.1.0

Byte-Engine transport protocol primitives for local and remote sessions.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Provides the API and protocol state for an authoritative BETP server.

pub mod interface;
pub mod session;

pub use interface::{ConnectionResults, PacketHandlingResults, Server, Settings};
pub use session::Session;

/// An event produced by a BETP server.
#[derive(Debug, Clone, Copy)]
pub enum Events {
	/// A client connected with the given ID.
	ClientConnected { id: u64 },
	/// A client with the given ID disconnected.
	ClientDisconnected { id: u64 },
}