pub fn decode_server_to_client(
bytes: &[u8],
sink: &mut dyn DiagnosticSink,
) -> Result<ServerPacket, DPlusError>Expand description
Decode a UDP datagram sent from a DPlus reflector (server → client).
§Errors
DPlusError::UnknownPacketLengthfor unrecognized lengthsDPlusError::DsvtMagicMissingfor DSVT-length packets without the magicDPlusError::StreamIdZerofor voice packets with stream id 0DPlusError::InvalidShortControlBytefor 5-byte packets with unknown control
§See also
ircDDBGateway/Common/DPlusProtocolHandler.cpp — the reference
parser this decoder mirrors (length-dispatch then DSVT-magic
branch). xlxd/src/cdplusprotocol.cpp is a mirror reference.