#include <POMessage.h>
Inheritance diagram for POMessage:
Public Member Functions | |
POMessage () | |
Default constructor. | |
POMessage (const POMessage &cpy) | |
virtual | ~POMessage () |
virtual string | messageType () const |
void | setTag (int id) |
void | setSource (const POAddress &source) |
void | setDestination (const POAddress &dest) |
POInt | getTag () const |
POAddress | getSource () const |
POAddress | getDestination () const |
string | getPackedType () const |
virtual POMessage * | clone () const |
int | packsize () const |
int | pack (char *buf) const |
int | unpack (char *buf) |
|
Default constructor.
|
|
|
|
|
|
Creates an identical copy of this message. This function must be overloaded in derived classes.
Reimplemented in POBoxListMsg, POErrorMsg, POGroupMsg, POPartialMsg, POSmallFileMsg, and POTextMsg. |
|
|
|
|
|
|
|
|
|
Reimplemented in POBoxListMsg, POErrorMsg, POGroupMsg, POPartialMsg, POSmallFileMsg, and POTextMsg. |
|
packs the message into a pre-alocated buffer of size >= packsize()
Reimplemented in POBoxListMsg, POErrorMsg, POGroupMsg, POPartialMsg, POSmallFileMsg, and POTextMsg. |
|
calculates the number of bytes needed to pack this message
Reimplemented in POBoxListMsg, POErrorMsg, POGroupMsg, POPartialMsg, POSmallFileMsg, and POTextMsg. |
|
|
|
|
|
|
|
unpacks the message, setting source, destination, and derived type
Reimplemented in POBoxListMsg, POErrorMsg, POGroupMsg, POPartialMsg, POSmallFileMsg, and POTextMsg. |