Main Page | Modules | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

Mailer Class Reference
[Communications Facilities]

#include <Mailer.hh>

Inherits Messager.

List of all members.


Detailed Description

Class for sending messages to a mailbox.

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)
MessagegetCurMessage () const
void resetCurMessage ()


Member Function Documentation

int Mailer::sendDouble double  d  ) 
 

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.

int Mailer::sendInt int  i  ) 
 

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.

int Mailer::sendMsg Message  ) 
 

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.


RHexLib Reference Documentation