#include <vos/corelibs/vos/message.hh>
Inheritance diagram for VOS::Message:
Definition at line 50 of file message.hh.
|
Create a new message.
Definition at line 44 of file message.cc. |
|
Copy a message.
Definition at line 55 of file message.cc. |
|
Destroy this message.
Definition at line 70 of file message.cc. |
|
Have the message fill in the nonce field with a random nonce.
Definition at line 197 of file message.cc. |
|
Get the nonce of the OUTGOING REPLIES that this message depends on before it can be delivered, used to determine message context. This is a comma-separeted no spaces! Definition at line 190 of file message.cc. |
|
Get the first field which matches the supplied key. Note that this field list is SEPERATE from the type/to/from/method/nonce fields.
Definition at line 216 of file message.cc. |
|
Get the first field which matches the supplied key. Note that this field list is SEPERATE from the type/to/from/method/nonce fields.
Definition at line 204 of file message.cc. |
|
Get the message formatted with the function supplied in setMappingFunc().
Definition at line 309 of file message.cc. Referenced by VOS::MessageBlock::getString(). |
|
Get the from field.
Definition at line 160 of file message.cc. |
|
Print out a string value for the message with substitutions done, to make it easier to tell what the processed message actually looked like.
Definition at line 315 of file message.cc. |
|
Get the message block this message is contained in. May be NULL. Definition at line 183 of file message.cc. |
|
Get the method field.
Definition at line 165 of file message.cc. |
|
Get the nonce field.
Definition at line 171 of file message.cc. |
|
Get the number of ordinary fields.
Definition at line 195 of file message.cc. |
|
Get the source site. This is the site that actually generated this message. MAY BE ZERO IF THE MESSAGE WAS GENERATED LOCALLY. If so, you'll need to do the following to determine the source site: Site::findSite(URL(themsg.getFrom()).getHostAndPort()) Definition at line 177 of file message.cc. |
|
Get time field, used for scheduling.
Definition at line 176 of file message.cc. |
|
Get the to field.
Definition at line 155 of file message.cc. |
|
Definition at line 170 of file message.cc. |
|
Get whether there is anything in the dependency field.
Definition at line 150 of file message.cc. |
|
Get whether there is anything in the from field.
Definition at line 135 of file message.cc. |
|
Get whether there is anything in the method field.
Definition at line 140 of file message.cc. |
|
Get whether there is anything in the nonce field.
Definition at line 145 of file message.cc. |
|
Get whether there is anything in the to field.
Definition at line 130 of file message.cc. |
|
Insert a new field.
Definition at line 247 of file message.cc. |
|
Insert a new field.
Definition at line 262 of file message.cc. |
|
Insert a new field.
Definition at line 226 of file message.cc. |
|
Remove the first instance of a field with the supplied key.
Definition at line 283 of file message.cc. |
|
Remove an existing field at some position. See insertField() for details about the legal numerical values of the position.
Definition at line 276 of file message.cc. |
|
Definition at line 125 of file message.cc. |
|
Set whom this message is sent by. This should probably be the URL string of the object which is generating this message.
Definition at line 111 of file message.cc. |
|
Set the function which converts this message structure into a string. End users don't need to call this, as it is set to the default when the message is constructed.
Definition at line 295 of file message.cc. Referenced by Message(). |
|
Indicate the message block this message is contained in. Does not actually add itself to the message block, however (you really want to be using MessageBlock::insertMessage())
Definition at line 120 of file message.cc. |
|
Set the method action this message is expressing.
Definition at line 112 of file message.cc. |
|
Set the nonce field. The nonce is used to match a match a reply against a request (because the reply bears the same nonce as the originating message.)
Definition at line 113 of file message.cc. Referenced by generateNonce(). |
|
Set the source site. This is not a field in the message itself, but rather is used to set the site originating this message (that is to say, which socket the message was received on.) This is compared against the "from" field to provide a simple filter against really obvious spoofing. You do NOT need to set this if you are creating a new message to be sent; it is only used for messages received from the network.
Definition at line 115 of file message.cc. Referenced by VOS::RemoteStreamSite::runScript(). |
|
Set the time field, in seconds. This is used by the message delivery scheduler to determine when to deliver this message, useful for scripted events in MessageBlock objects.
Definition at line 114 of file message.cc. |
|
Set whom this message is intended for. This should probably be the URL string of the object to which the message is destined.
Definition at line 109 of file message.cc. |
|
Set what type of message this is. You probably want it to be either "message" or "update".
Definition at line 110 of file message.cc. |
|
Internal debugging function.
|
|
Definition at line 99 of file message.hh. Referenced by Message(). |
|
Definition at line 98 of file message.hh. Referenced by Message(), and ~Message(). |