#include <POGroupMsg.h>
Inheritance diagram for POGroupMsg:

Public Types | |
| enum | COMMAND { JOIN, LEAVE, ADD, REMOVE } |
Public Member Functions | |
| POGroupMsg (int cmd=JOIN) | |
| Default constructor. | |
| POGroupMsg (const POAddress &add_address, int add_rem=ADD) | |
| POGroupMsg (const POGroupMsg &cpy) | |
| Copy Constructor. | |
| virtual | ~POGroupMsg () |
| virtual string | messageType () const |
| int | getCommand () const |
| void | setCommand (int cmd) |
| POAddress | getAddress () const |
| void | setAddress (const POAddress &adr) |
| Only valid if getCommand() == ADD || REMOVE. | |
| virtual POMessage * | clone () const |
| int | packsize () const |
| int | pack (char *buf) const |
| int | unpack (char *buf) |
|
|
|
|
|
Default constructor.
|
|
||||||||||||
|
Constructs a message that will add or remove an address from a group
|
|
|
Copy Constructor.
|
|
|
|
|
|
Creates an identical copy of this message. This function must be overloaded in derived classes.
Reimplemented from POMessage. |
|
|
Only valid if getCommand() == ADD || REMOVE
|
|
|
|
|
|
Reimplemented from POMessage. |
|
|
packs the message into a pre-alocated buffer of size >= packsize()
Reimplemented from POMessage. |
|
|
calculates the number of bytes needed to pack this message
Reimplemented from POMessage. |
|
|
Only valid if getCommand() == ADD || REMOVE.
|
|
|
|
|
|
unpacks the message, setting source, destination, and derived type
Reimplemented from POMessage. |
1.3.4