handle connection registration

This commit is contained in:
DJMrTV 2025-01-19 20:05:44 +01:00
commit 20aa273d67
7 changed files with 233 additions and 24 deletions

View file

@ -50,6 +50,15 @@ impl TypesFlags{
}
}
pub mod flags{
pub const ACK: u16 = 0x001;
pub const RELIABLE: u16 = 0x002;
pub const NEED_ACK: u16 = 0x004;
pub const HAS_SIZE: u16 = 0x008;
pub const MULTI_ACK: u16 = 0x200;
}
impl Debug for TypesFlags{
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
let stream_type = self.get_types();
@ -59,7 +68,7 @@ impl Debug for TypesFlags{
}
#[repr(transparent)]
#[derive(Copy, Clone, Pod, Zeroable, SwapEndian)]
#[derive(PartialEq, Eq, Copy, Clone, Pod, Zeroable, SwapEndian, Hash)]
pub struct VirtualPort(u8);
impl VirtualPort{