Skip to main content

message_payload

Function message_payload 

Source
pub fn message_payload(layout: HeaderLayout, message: &[u8]) -> &[u8] 
Expand description

Returns the payload of a complete TCP message (everything after the header).

message must be a whole message as stored by crate::network::TcpSession, i.e. the header followed by exactly header.size - header_len payload bytes.