decode_client_to_server

Function decode_client_to_server 

Source
pub fn decode_client_to_server(
    bytes: &[u8],
    sink: &mut dyn DiagnosticSink,
) -> Result<ClientPacket, DPlusError>
Expand description

Decode a UDP datagram sent from a DPlus client (client → server).

§Errors

Same as decode_server_to_client, but produces ClientPacket variants. The 8-byte length is NOT accepted here — clients do not send 8-byte LINK2 replies.

§See also

ircDDBGateway/Common/DPlusProtocolHandler.cpp — mirror parser on the server side.