#include <Mailer.hh>
Inherits Messager.
The Mailer class is used for sending messages to a mailbox on a remote communications manager. It is derived from the Messager class from which it inherits several critical functions from.
Public Member Functions | |
Mailer (CommManager *mgr, RemoteManager *dest, int max_size, com_id_t mailbox_id, com_id_t exclusive_dest=0) | |
int | sendMsg (Message *) |
int | sendInt (int i) |
int | sendDouble (double d) |
Message * | getCurMessage () const |
void | resetCurMessage () |
|
This is a convenience routines for sending double precision floating point numbers. Use with caution, as it is usually better to bundle related values together in a structure rather than having many individual integer and double mailboxes. |
|
This is a convenience routines for sending integers. Use with caution, as it is usually better to bundle related values together in a structure rather than having many individual integer and double mailboxes. |
|
This method sends a message to a remote mailbox. If successful, the message will be released and the value 0 will be returned. If the mailbox has been invalidated for any reason, then the message will not be released, and the return value will be -1. |