[#Transport-SetMessageToSend] = xref:Transport.adoc[Transport]::SetMessageToSend :relfileprefix: ../ :mrdocs: Set the next message to send. == Synopsis Declared in `<net.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual bool SetMessageToSend(xref:CSerializedNetMsg.adoc[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 [cols="1,4"] |=== | Name| Description | *msg* [inout] | the message to enqueue; may be moved‐from on success. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#