Skip to main content

encode_legacy_reply

Function encode_legacy_reply 

Source
pub fn encode_legacy_reply(ping: &LegacyPing, answer: &Value) -> Result<Vec<u8>>
Expand description

The 0xFF kick packet answering a legacy ping. 1.4+ clients get §1\0protocol\0version\0motd\0online\0max; a bare 0xFE gets motd§online§max, where § is the separator and is therefore removed from the MOTD.