Set the next message to send.

Synopsis

Declared in <net.h>

virtual
bool
SetMessageToSend(CSerializedNetMsg& msg) noexcept = 0;

Description

If no message can currently be set (perhaps because the previous one is not yet done being sent), returns false, and msg will be unmodified. Otherwise msg is enqueued (and possibly moved‐from) and true is returned.

Return Value

true if the message was accepted, false if none could be set right now.

Parameters

Name

Description

msg [inout]

the message to enqueue; may be moved‐from on success.

Created with MrDocs