pub fn decode_client_to_server(
bytes: &[u8],
sink: &mut dyn DiagnosticSink,
) -> Result<ClientPacket, DExtraError>Expand description
Decode a UDP datagram sent from a DExtra client (client → server).
§Errors
DExtraError::UnknownPacketLengthfor unrecognized lengthsDExtraError::DsvtMagicMissingfor voice-length packets without DSVT magicDExtraError::StreamIdZerofor voice packets with stream id 0DExtraError::InvalidModuleBytefor LINK/UNLINK with a non-A-Z module byte at[8]or[9](UNLINK still requires byte[9]=b' 'which is handled separately).
§See also
ircDDBGateway/Common/DExtraProtocolHandler.cpp — the reference
parser this decoder mirrors. xlxd/src/cdextraprotocol.cpp is
a mirror reference.