IPCEventTranslator Class Reference#include <EventTranslator.h>
Inheritance diagram for IPCEventTranslator:
[legend]List of all members.
Detailed Description
An implementation of EventTranslator which will forward events using the inter-process mechanisms of the current platform.
The current implementation creates an RCRegion for each event and then releases its reference to the region after it is sent. A more efficient implementation might retain a queue of recycled RCRegions to reduce allocation costs
Definition at line 125 of file EventTranslator.h.
Member Typedef Documentation
Constructor & Destructor Documentation
IPCEventTranslator::IPCEventTranslator |
( |
IPCSender_t & |
subj |
) |
[inline, explicit] |
|
Member Function Documentation
char * IPCEventTranslator::bufferRequest |
( |
unsigned int |
size |
) |
[protected, virtual] |
|
void IPCEventTranslator::post |
( |
const char * |
buf, |
|
|
unsigned int |
size |
|
) |
[protected, virtual] |
|
|
Called by encodeEvent() after serialization is complete for communication to other processes.
- Parameters:
-
| buf | the data to be sent, will be a buffer previously requested from bufferRequest |
| size | the number of bytes to send |
You will always get this callback after each call to bufferRequest(), even in the event of an error during saving. If an error occured, the callback will receive 0 for size.
Implements EventTranslator.
Definition at line 82 of file EventTranslator.cc. |
Member Data Documentation
|
where to post messages upon serialization, set by constructor
Definition at line 141 of file EventTranslator.h.
Referenced by post(). |
The documentation for this class was generated from the following files:
|