forest-net
an overlay networks for large-scale virtual worlds
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator
Monitor.cpp File Reference
#include "Monitor.h"
Include dependency graph for Monitor.cpp:

Go to the source code of this file.

Namespaces

 forest
 The CtlPkt class is used to pack and unpack forest control messages.
 

Constant Groups

 forest
 The CtlPkt class is used to pack and unpack forest control messages.
 

Functions

int main (int argc, char *argv[])
 usage: Monitor cmIp myIp worldSize uname pword finTime More...
 

Detailed Description

Author
Jon Turner
Date
2011 This is open source software licensed under the Apache 2.0 license. See http://www.apache.org/licenses/LICENSE-2.0 for details.

Definition in file Monitor.cpp.

Function Documentation

int main ( int  argc,
char *  argv[] 
)

usage: Monitor cmIp myIp worldSize uname pword finTime

Monitor is a program that monitors a virtual world, tracking the motion of the avatars within it. The monitored data is sent to a remote GUI which can display it visually. The remote GUI "connects" to the Monitor by sending it a datagram with a magic number in the first word (1234567). The second word of the connection packet identifies the comtree which should be displayed. The remote GUI can switch to another comtree by sending another connection packet. To sever the connection, the GUI sends a disconnect packet with another magic number (7654321) in the first word.

Data is forwarded in binary form with 40 reports per packet.

Command line arguments include

cmIp the IP address of the client manager myIp the IP address to bind to the local socket worldSize the number of squares in the virtual world's basic grid (actually, the grid is worldSizeXworldSize) uname the user name to use for logging in pword the corresponding password finTime the number of seconds to run before terminating.

Definition at line 39 of file Monitor.cpp.

Here is the call graph for this function: