#include <Module.h>
Public Member Functions | |
virtual void | ReceivePacket (CPacket *)=0 |
ech derived clas must implement its own receive package policy | |
void | AttachToNetwork () |
a simple method which calls a network function, using the module id of the calling module | |
void | DetachFromNetwork () |
another simple method which calls a network function, using the module id of the calling module | |
Protected Member Functions | |
virtual void | SendPacket (CPacket *packet) const |
this can be overriden to change the behavior of the send policy | |
void | SendPacket (const char *dest, CPacket *packet) const |
updates given packet with destionation info and calls SendPacket(CPacket *) method | |
void | SendPacket (const string &dest, CPacket *packet) const |
updates given packet with destionation info and calls SendPacket(CPacket *) method |