pub fn encode_connect_ack(
out: &mut [u8],
callsign: &Callsign,
reflector_module: Module,
) -> Result<usize, EncodeError>Expand description
Encode a 14-byte connect ACK reply.
Layout per ircDDBGateway/Common/ConnectData.cpp:302-308
(getDExtraData CT_ACK):
[0..7]: first 7 chars of the echoed callsign[7]: space padding[8]: 8th char of the echoed callsign (the repeater/client module letter from the original LINK request)[9]: reflector module letter[10..13]:b"ACK"[13]:0x00(NUL terminator)
§Errors
Returns EncodeError::BufferTooSmall if out.len() < 14.
§See also
ircDDBGateway/Common/ConnectData.cpp:302-308 (getDExtraData
CT_ACK branch) for the reference encoder.