Receive bytes from the buffer and deserialize them into messages.

Synopsis

Declared in <net.h>

[[requires_capability(0x7ff36f2e09d8), requires_capability(0x7ff36e4bd208), requires_capability(0x7ff37ef689c8), requires_capability(0x7ff3770c5688), requires_capability(0x7ff38f628998), requires_capability(0x7ff37eb79338), requires_capability(0x7ff37bc1b9e8), requires_capability(0x7ff38919bff8), requires_capability(0x7ff37a03c838), requires_capability(0x7ff383afdc28), requires_capability(0x7ff37ca26208)]]
bool
ReceiveMsgBytes(
    std::span<uint8_t const> msg_bytes,
    bool& complete);

Return Value

True if the peer should stay connected, False if the peer should be disconnected from.

Parameters

Name

Description

msg_bytes [in]

The raw data

complete [out]

Set True if at least one message has been deserialized and is ready to be processed

Created with MrDocs