Receive bytes from the buffer and deserialize them into messages.

Synopsis

Declared in <net.h>

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