forest-net
an overlay networks for large-scale virtual worlds
|
Host implements a forest host. More...
#include <Host.h>
Public Member Functions | |
Host (ipa_t, ipa_t) | |
bool | init () |
Initialize IO. More... | |
void | run (bool, uint32_t, uint32_t) |
bool | readPacket (int, int &, int &) |
void | send (int) |
int | receive () |
Private Attributes | |
int | nPkts |
ipa_t | myIpAdr |
uint16_t | myPort |
ipa_t | rtrIpAdr |
fAdr_t | myAdr |
int | sock |
PacketStore * | ps |
Host implements a forest host.
More specifically, this program generates and sends a set of forest packets based on a script. The script format supports a simple repetition mechanism, allowing for non-trivial demonstrations.
bool forest::Host::init | ( | ) |