forest-net
an overlay networks for large-scale virtual worlds
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator
forest::Host Class Reference

Host implements a forest host. More...

#include <Host.h>

Collaboration diagram for forest::Host:

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
 
PacketStoreps
 

Detailed Description

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.

Definition at line 26 of file Host.h.

Member Function Documentation

bool forest::Host::init ( )

Initialize IO.

Return true on success, false on failure. Configure socket for non-blocking access, so that we don't block when there are no input packets available.

Definition at line 88 of file Host.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files: