Transport::GetReceivedMessage

Retrieve a completed message from transport.

Synopsis

Declared in <net.h>

virtual
CNetMessage
GetReceivedMessage(
    NodeClock::time_point time,
    bool& reject_message) = 0;

Description

This can only be called when ReceivedMessageComplete() is true.

If reject_message=true is returned the message itself is invalid, but (other than false returned by ReceivedBytes) the transport is not in an inconsistent state.

Return Value

the completed message.

Parameters

NameDescription
time [in]receipt time to stamp on the returned message.
reject_message [out]set to true if the message should be rejected.