CNode::PollMessage

Poll the next message from the processing queue of this connection.

Synopsis

Declared in <net.h>

[[requires_capability(0x7ff36f2e07d8), requires_capability(0x7ff36e4bd008), requires_capability(0x7ff37ef687c8), requires_capability(0x7ff3770c5488), requires_capability(0x7ff38f628798), requires_capability(0x7ff37eb79138), requires_capability(0x7ff37bc1b7e8), requires_capability(0x7ff38919bdf8), requires_capability(0x7ff37a03c638), requires_capability(0x7ff383afda28), requires_capability(0x7ff37ca26008)]]
std::optional<std::pair<CNetMessage, bool>>
PollMessage();

Description

Returns std::nullopt if the processing queue is empty, or a pair consisting of the message and a bool that indicates if the processing queue has more entries.

Return Value

the next message and whether more remain, or std::nullopt if the queue is empty.