Transport::ReceivedBytes

Feed wire bytes to the transport.

Synopsis

Declared in <net.h>

virtual
bool
ReceivedBytes(std::span<uint8_t const>& msg_bytes) = 0;

Description

Consumed bytes are chopped off the front of msg_bytes.

Return Value

false if some bytes were invalid, in which case the transport can't be used anymore.

Parameters

NameDescription
msg_bytes [inout]bytes received from the wire; consumed bytes are chopped off the front.