[#CNode-PollMessage]
= xref:CNode.adoc[CNode]::PollMessage
:relfileprefix: ../
:mrdocs:

Poll the next message from the processing queue of this connection&period;

== Synopsis

Declared in `&lt;net&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f950f15d9b8), requires&lowbar;capability(0x7f950f1eccc8), requires&lowbar;capability(0x7f950aff03a8), requires&lowbar;capability(0x7f95030332a8), requires&lowbar;capability(0x7f95236c1d58), requires&lowbar;capability(0x7f952527b4c8), requires&lowbar;capability(0x7f950ec80b18), requires&lowbar;capability(0x7f950dc34348), requires&lowbar;capability(0x7f951df8fee8), requires&lowbar;capability(0x7f9524e49988), requires&lowbar;capability(0x7f950f723c28)&rsqb;&rsqb;
std::optional&lt;std::pair&lt;CNetMessage, bool&gt;&gt;
PollMessage();
----

== Description

Returns std&colon;&colon;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&period;

== Return Value

the next message and whether more remain, or std&colon;&colon;nullopt if the queue is empty&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
