#include <Mailbox.h>
Public Member Functions | |
CMailbox () | |
CMailbox. | |
~CMailbox () | |
~CMailbox | |
bool | GetClientMsgAvail () |
GetClientMsgAvail Check to see if there are client messages available for download. | |
bool | GetHostMsgAvail () |
GetClientMsgAvail Check to see if there are client messages available for download. | |
CMessage * | GetClientMsg () |
GetClientMsg Download the oldest message sent TO the client. | |
CMessage * | GetHostMsg () |
GetHostMsg Download the oldest message sent TO the host. | |
bool | PostClientMsg (const CMessage *) |
PostClientMsg Send a client message. | |
bool | PostHostMsg (const CMessage *) |
PostHostMsg Sends a host message TO the client associated with the mailbox. | |
void | SetMute (bool bMute) |
SetMute. | |
bool | GetMute () const |
GetMute. | |
void | ClientCleanup () |
ClientCleanup. | |
void | HostCleanup () |
HostCleanup. |
Description: : The CMailBox class provides and interface between the the message dispatcher and the connected player.
Limitations: : None
|
CMailbox. Description: This function initializes the internal class attributes.
|
|
~CMailbox Description: The destructor frees any memory allocated by the class.
|
|
ClientCleanup. Description: Due to the possibility of memory corruption when sending messages between dll-resident object and the application, special memory deletion precautions must be taken. This function must be periodically called by the client (a CPlayer object) to clean up memory allocated in the client memory.
|
|
GetClientMsg Download the oldest message sent TO the client. Description: Attempts to retrieve the next message in the client-end queue. The returned message, if any, is a copy; it can be freely deleted.
|
|
GetClientMsgAvail Check to see if there are client messages available for download. Description: This function check to see if messages are available to be receive by the client end of the "pipe". Client messages are retrieved by calling the GetClientMsg funct.
|
|
GetHostMsg Download the oldest message sent TO the host. Only the host should call this function. |
|
GetClientMsgAvail Check to see if there are client messages available for download. Description: This function check to see if messages are available to be receive by the host end of the "pipe". Host messages are retrieved by calling the GetHostMsg funct.
|
|
GetMute. Description: This function gets the mute status of the mailbox.
|
|
HostCleanup. Description: Due to the possibility of memory corruption when sending messages between dll-resident object and the application, special memory deletion precautions must be taken. This fucntion must be periodically called by the host (the dispatcher) to clean up memory allocated in the host memory.
|
|
PostClientMsg Send a client message. This function returns false if the mailbox is full. |
|
PostHostMsg Sends a host message TO the client associated with the mailbox. This function returns false if the mailbox is full. |
|
SetMute. Description: This function stops the mailbox from sending or recieving any messages. Messages that are currently in the mailbox are stored until the mailbox becomes unmuted.
|