#include <cascade/interprocess/CascadeMessage.h>
Inheritance diagram for CascadeMessage:
Public Member Functions | |
const CascadeTime::TimeBase & | GetTimeSent () const |
const CascadeTime::TimeBase & | GetTimeReceived () const |
const char * | GetSourceWormholeURL () const |
const char * | GetTargetWormholeURL () const |
bool | IsReplyRequired () const |
u32 | GetMessageID () const |
u32 | GetMessageId () const |
u32 | ID () const |
u32 | Id () const |
void * | GetData () const |
u32 | GetDataSize () const |
Static Public Member Functions | |
static u32 | FindOrCreateMessage (const char *pMessageName) |
static u32 | FindMessage (const char *pMessageName) |
static bool | GetMessageNameFromID (u32 nID, char *pBuff, u32 nBuffLen) |
Friends | |
class | CascadeWormhole |
CascadeMessage is the class type for messages sent through CascadeWormholes. CascadeMessage is also used (via static functions) to generate unique message ids from string names for use in wormhole delivery functions. These messageIDs serve to type clients' messages as they travel through the wormhole.
As the class type that is received from CascadeWormholes, CascadeMessage contains only opaque members. Use the accessor functions to retrieve interesting values from CascadeMessage.
|
returns an existing messageID FindMessage() finds and returns the ID for the message named pMessageName. FindMessage() returns 0 if the message named pMessageName was not found.
|
|
returns an existing or allocates a new messageID Call FindOrCreateMessage() to find or create a new ID for the message named pMessageName. FindOrCreateMessage() returns the messageID or 0 if a messageID could not be created.
|
|
gets the message data GetData() returns the data that was sent with the wormhole message.
|
|
gets the size in bytes of the message data GetDataSize() returns the size of the data pointed to by the return value of GetData()
|
|
gets the messageID of the message GetMessageId() returns the messageID of the message.
|
|
gets the messageID of the message GetMessageID() returns the messageID of the message.
|
|
converts a messageID to its string name GetMessageNameFromID() fills *pBuff with the message name of the message identified by nID. nID must refer to a previously created custom message created with FindOrCreateMessage(). GetMessageNameFromID() returns false if there is no message registered with id nID or if the pBuff whose length is identified by nBuffLen is too short to hold the message name.
|
|
gets the URL of the wormhole that sent the message GetSourceWormholeURL() gets the URL of the wormhole that sent the message.
|
|
gets the URL of the delivery target GetTargetWormholeURL() gets the URL that was used as the destination for the CascadeMessage. In the case of a broadcast message, this URL is the URL that was used for the broadcast. In the case of a message sent or posted to a specific wormhole, this URL is the URL of that wormhole.
|
|
gets the time a message was received GetTimeReceived() returns the time the message was received
|
|
gets the time a message was sent GetTimeSent() returns the time the message was sent
|
|
gets the messageID of the message Id() returns the messageID of the message.
|
|
gets the messageID of the message ID() returns the messageID of the message.
|
|
determines whether or not a reply to this message is required IsReplyRequired() determines whether or not a reply to this message is required. If a reply is required, the sending process is blocked until a reply is sent. If no reply is explicitly sent, an auto reply message will be sent when the lifetime of the CascadeMessage has expired.
|
|
|