Skip to main content

encode_hello

Function encode_hello 

Source
pub fn encode_hello(buf: &mut [u8], name: &str) -> usize
Expand description

Encode a HELLO message (binary format) Format: msg_type(1) + version(1) + features(1) + name + token