C4 Engine Terathon Software C4 Engine API Documentation

• Message Manager

API Links
Developer Links

Message::SetMessageFlags

Defined in:  C4Messages.h
Sets flags which indicate whether a message requires special handling.
Prototype

void SetMessageFlags(unsigned long flags);

Parameters
flags The new flags for this message.
Description
The SetMessageFlags function sets flags for a message which indicate special properties. The flags parameter may be zero or a combination (through logical OR) of the following values.
kMessageUnreliable The message should be sent as an unreliable packet. Messages having this flag set are not guaranteed to reach their destinations, but they do arrive in order.
kMessageUnordered The message should be sent as an unordered packet. Messages having this flag set can arrive at their destinations out of order. The kMessageUnreliable flag must also be set.
kMessageCombineInhibit The message should not be combined with other messages into a single data packet. Messages having this flag set will always be transmitted as a distinct data packet.
When a new message is constructed, its flags are set to zero. Thus, all messages are sent reliably by default.
See Also

Message::GetMessageFlags