#include <cMsg.hxx>
Definition at line 297 of file cMsg.hxx.
Public Member Functions | |
cMsg (const string &UDL, const string &name, const string &descr) | |
Constructor for cMsg system object. | |
virtual | ~cMsg (void) |
Destructor disconects from cMsg system. | |
virtual void | connect () throw (cMsgException) |
Connects to cMsg system. | |
virtual void | disconnect (void) throw (cMsgException) |
Disconnects from cMsg system. | |
virtual void | send (cMsgMessage &msg) throw (cMsgException) |
Sends message. | |
virtual void | send (cMsgMessage *msg) throw (cMsgException) |
Sends message. | |
virtual int | syncSend (cMsgMessage &msg, const struct timespec *timeout=NULL) throw (cMsgException) |
Synchronously sends message. | |
virtual int | syncSend (cMsgMessage *msg, const struct timespec *timeout=NULL) throw (cMsgException) |
Synchronously sends message. | |
virtual void * | subscribe (const string &subject, const string &type, cMsgCallback *cb, void *userArg, const cMsgSubscriptionConfig *cfg=NULL) throw (cMsgException) |
Subscribes to subject,type and specifies callback,userArg. | |
virtual void * | subscribe (const string &subject, const string &type, cMsgCallback &cb, void *userArg, const cMsgSubscriptionConfig *cfg=NULL) throw (cMsgException) |
Subscribes to subject,type and specifies callback,userArg. | |
virtual void | unsubscribe (void *handle) throw (cMsgException) |
Unsubscribes. | |
virtual cMsgMessage * | sendAndGet (cMsgMessage &sendMsg, const struct timespec *timeout=NULL) throw (cMsgException) |
Sends message and gets reply. | |
virtual cMsgMessage * | sendAndGet (cMsgMessage *sendMsg, const struct timespec *timeout=NULL) throw (cMsgException) |
Sends message and gets reply. | |
virtual cMsgMessage * | subscribeAndGet (const string &subject, const string &type, const struct timespec *timeout=NULL) throw (cMsgException) |
Subscribes to subject/type, returns one matching message, then unsubscribes. | |
virtual void | flush (const struct timespec *timeout=NULL) throw (cMsgException) |
Flushes outgoing message queues. | |
virtual void | start (void) throw (cMsgException) |
Enables delivery of messages to callbacks. | |
virtual void | stop (void) throw (cMsgException) |
Disables delivery of messages to callbacks. | |
virtual string | getUDL (void) const |
Gets connection UDL. | |
virtual string | getName (void) const |
Gets connection name. | |
virtual string | getDescription (void) const |
Gets connection description. | |
virtual bool | isConnected (void) const |
True if connected. | |
virtual bool | isReceiving (void) const |
True if receiving messages. | |
virtual void | setShutdownHandler (cMsgShutdownHandler *handler, void *userArg) throw (cMsgException) |
Sets shutdown handler. | |
virtual void | shutdownClients (const string &client, int flag) throw (cMsgException) |
Shuts down a client. | |
virtual void | shutdownServers (const string &server, int flag) throw (cMsgException) |
Shuts down a server. | |
virtual cMsgMessage * | monitor (const string &monString) throw (cMsgException) |
Returns domain-dependent monitoring information. |
|
Constructor for cMsg system object.
Definition at line 1566 of file cMsgWrapper.cc. |
|
Destructor disconects from cMsg system.
Definition at line 1577 of file cMsgWrapper.cc. |
|
Connects to cMsg system.
Definition at line 1588 of file cMsgWrapper.cc. |
|
Disconnects from cMsg system.
Definition at line 1607 of file cMsgWrapper.cc. |
|
Flushes outgoing message queues.
Definition at line 1883 of file cMsgWrapper.cc. |
|
Gets connection description.
Definition at line 1939 of file cMsgWrapper.cc. |
|
Gets connection name.
Definition at line 1952 of file cMsgWrapper.cc. |
|
Gets connection UDL.
Definition at line 1965 of file cMsgWrapper.cc. |
|
True if connected.
Definition at line 1978 of file cMsgWrapper.cc. |
|
True if receiving messages.
Definition at line 1999 of file cMsgWrapper.cc. |
|
Returns domain-dependent monitoring information.
Definition at line 2085 of file cMsgWrapper.cc. |
|
Sends message.
Definition at line 1644 of file cMsgWrapper.cc. |
|
Sends message.
Definition at line 1624 of file cMsgWrapper.cc. |
|
Sends message and gets reply.
Definition at line 1832 of file cMsgWrapper.cc. |
|
Sends message and gets reply.
Definition at line 1805 of file cMsgWrapper.cc. |
|
Sets shutdown handler.
Definition at line 2021 of file cMsgWrapper.cc. |
|
Shuts down a client.
Definition at line 2042 of file cMsgWrapper.cc. |
|
Shuts down a server.
Definition at line 2063 of file cMsgWrapper.cc. |
|
Enables delivery of messages to callbacks.
Definition at line 1901 of file cMsgWrapper.cc. |
|
Disables delivery of messages to callbacks.
Definition at line 1919 of file cMsgWrapper.cc. |
|
Subscribes to subject,type and specifies callback,userArg.
Definition at line 1758 of file cMsgWrapper.cc. |
|
Subscribes to subject,type and specifies callback,userArg.
Definition at line 1701 of file cMsgWrapper.cc. |
|
Subscribes to subject/type, returns one matching message, then unsubscribes.
Definition at line 1859 of file cMsgWrapper.cc. |
|
Synchronously sends message.
Definition at line 1682 of file cMsgWrapper.cc. |
|
Synchronously sends message.
Definition at line 1658 of file cMsgWrapper.cc. |
|
Unsubscribes.
Definition at line 1772 of file cMsgWrapper.cc. |