Skip to main content

make_handshake_frame

Function make_handshake_frame 

Source
pub fn make_handshake_frame(from: &str, profile: &PeerProfile) -> Vec<u8> 
Expand description

Build a handshake frame advertising from’s PeerProfile: the magic prefix, the sender identity, then the serialized profile. Published like any message but recognized + absorbed (not delivered as data) by the receiver.