diff --git a/kubi-udp/src/packet.rs b/kubi-udp/src/packet.rs index 8b5b8d2..d824d2c 100644 --- a/kubi-udp/src/packet.rs +++ b/kubi-udp/src/packet.rs @@ -17,6 +17,9 @@ pub struct IdClientPacket(pub Option, pub ClientPa #[derive(Encode, Decode)] pub enum ServerPacket where T: Encode + Decode { Data(T), - Connected, + Connected(ClientId), Disconnected, } + +#[derive(Encode, Decode)] +pub struct IdServerPacket(pub Option, pub ServerPacket);