Function pueue_lib::network::protocol::send_bytes [−][src]
pub async fn send_bytes(
payload: &[u8],
stream: &mut GenericStream
) -> Result<(), Error>
Expand description
Send a Vec of bytes. Before the actual bytes are send, the size of the message is transmitted in an header of fixed size (u64).