Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

IPC::MsgClient Class Reference

This class uses TwoWayMsg for the client side of a single server/multiple client scenario. More...

#include <ipcplus.h>

Inheritance diagram for IPC::MsgClient::

IPC::TwoWayMsg List of all members.

Public Methods

 MsgClient (const unsigned int key0)
 Constructor.

virtual ~MsgClient ()
 Destructor.

virtual bool xmit (const void *data, const size_t size)
 Transmit a request. More...

virtual bool recv (void *mData, size_t &mSize)
 Receive a reply. More...


Private Attributes

int myAddress
 The address or client identification of this client. More...


Detailed Description

This class uses TwoWayMsg for the client side of a single server/multiple client scenario.


Member Function Documentation

virtual bool IPC::MsgClient::recv void *    mData,
size_t &    mSize
[inline, virtual]
 

Receive a reply.

Parameters:
mData  Must be a pointer to a buffer of the correct size.
mSize  Will hold the number of bytes received.
Returns:
False if this didn't work.

bool IPC::MsgClient::xmit const void *    data,
const size_t    size
[virtual]
 

Transmit a request.

The first time a client calls xmit, the registration with the server is performed.

Parameters:
data  The bytes to send.
size  The number of bytes to send.
Returns:
False if this didn't work.


Member Data Documentation

int IPC::MsgClient::myAddress [private]
 

The address or client identification of this client.

Initially set to zero and automatically assigned upon the first request performed.


The documentation for this class was generated from the following files:
Generated on Wed May 15 09:33:33 2002 for IPCPlus by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001