Feed received wire bytes to the transport, consuming them from the front.

Synopsis

Declared in <net.h>

[[requires_capability(0x7f950efa7ac8, 0x7f950efa7b88), requires_capability(0x7f950eb88ce8, 0x7f950eb88da8), requires_capability(0x7f950ae3a3f8, 0x7f950ae3a4b8), requires_capability(0x7f9502e7d2f8, 0x7f9502e7d3b8), requires_capability(0x7f952353be78, 0x7f952353bf38), requires_capability(0x7f94f8652448, 0x7f94f8652508), requires_capability(0x7f9522f6a7e8, 0x7f9522f6a8a8), requires_capability(0x7f950ef0ae58, 0x7f950ef0af18), requires_capability(0x7f951f0c0308, 0x7f951f0c03c8), requires_capability(0x7f9508067298, 0x7f9508067358), requires_capability(0x7f9522719ff8, 0x7f952271a0b8)]]
virtual
bool
ReceivedBytes(std::span<uint8_t const>& msg_bytes) noexcept override;

Return Value

false if invalid bytes were seen and the transport can no longer be used.

Parameters

Name

Description

msg_bytes

bytes received from the wire; consumed bytes are removed from the front.

Created with MrDocs