Skip to main content

write_packet

Function write_packet 

fn write_packet<B, P>(
    out: &mut PacketWriter<B>,
    max_packet_size: Option<NonZeroU32>,
    packet: &P,
) -> Result<(), WriteError<B::Error>>
where B: ByteBuffer, P: Body + ?Sized,
Expand description

Writes packet unless it exceeds the server’s Maximum Packet Size.