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

Synopsis

Declared in <net.h>

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.

Created with MrDocs