[#Transport-GetReceivedMessage]
= xref:Transport.adoc[Transport]::GetReceivedMessage
:relfileprefix: ../
:mrdocs:

Retrieve a completed message from transport&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
xref:CNetMessage.adoc[CNetMessage]
GetReceivedMessage(
    xref:NodeClock/time_point.adoc[NodeClock::time&lowbar;point] time,
    bool& reject&lowbar;message) = 0;
----

== Description

This can only be called when ReceivedMessageComplete() is true&period;

If reject&lowbar;message&equals;true is returned the message itself is invalid, but (other than false returned by ReceivedBytes) the transport is not in an inconsistent state&period;

== Return Value

the completed message&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *time* [in]
| receipt time to stamp on the returned message&period;
| *reject&lowbar;message* [out]
| set to true if the message should be rejected&period;
|===


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