CNode::ReceiveMsgBytes

Receive bytes from the buffer and deserialize them into messages.

Synopsis

Declared in <net.h>

[[requires_capability(0x7fbc931591f8), requires_capability(0x7fbc92ea0a88), requires_capability(0x7fbc86f8b2b8), requires_capability(0x7fbc96fc1018), requires_capability(0x7fbc8fa75c38), requires_capability(0x7fbcaf687cd8), requires_capability(0x7fbc9f562248), requires_capability(0x7fbca705dbd8), requires_capability(0x7fbc922a2fa8), requires_capability(0x7fbcaf849d18), requires_capability(0x7fbc9f18a248)]]
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

NameDescription
msg_bytes [in]The raw data
complete [out]Set True if at least one message has been deserialized and is ready to be processed