pub fn encode_hello(buf: &mut [u8], name: &str) -> usize
Encode a HELLO message (binary format) Format: msg_type(1) + version(1) + features(1) + name + token