forest-net
an overlay networks for large-scale virtual worlds
|
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: Avatar myIpAdr cliMgrIpAdr walls firstComt lastComt uname pword finTime More... | |
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 Avatar.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
usage: Avatar myIpAdr cliMgrIpAdr walls firstComt lastComt uname pword finTime
Command line arguments include the ip address of the avatar's machine, the router's IP address, the forest address of the avatar, the forest address of the router, the comtree to be used in the packet and the number of seconds to run before terminating.
The status reports include the current time (in us), the avatar's position, the direction it is facing, the speed at which it is moving and the number of nearby avatars it is tracking.
The type of the status packet is CLIENT_DATA, the first word of the payload is the constant STATUS_REPORT=1, and successive words of the payload contain a timestamp, the avatar's x position, its y position, its direction, its speed and the number of nearby avatars. This gives a total payload length of 6 words (24 bytes), giving a total packet length of 52 bytes.
Definition at line 40 of file Avatar.cpp.