forest-net
an overlay networks for large-scale virtual worlds
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator
Console.cpp File Reference
#include <list>
#include "CommonDefs.h"
#include "PacketHeader.h"
#include "CtlPkt.h"
Include dependency graph for Console.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

bool forest::sendReqPkt (int sock, CtlPkt &reqPkt, fAdr_t target, CtlPkt &replyPkt)
 Send a request packet, then wait for and return reply. More...
 
bool forest::setAttributes (CtlPkt &cpTemplate, CpTypeIndex type, CtlPkt &reqPkt)
 Set request packet attributes, based on template. More...
 
void forest::parseLine (string line, list< string > &tokenList)
 Parse an input line and produce a list of tokens. More...
 
void forest::buildWordList (string line, list< string > &wordList)
 Build a list of words from a line. More...
 
bool forest::validTokenList (list< string > tokenList)
 Verify that a tokenList is valid Specificialy, check that if it starts with a command phrase or abbreviation, then it's a valid command phrase or abbreviation. More...
 
void forest::processTokenList (list< string > tokenList, fAdr_t &target, CpTypeIndex &cpType, CtlPkt &cpTemplate)
 Process a list of tokens that has passed basic checks. More...
 
void forest::posResponse (CtlPkt &)
 
int forest::main (int argc, char *argv[])
 usage: Console NetMgrIp More...
 

Variables

const short forest::NM_PORT = 30122
 server port# for NetMgr
 

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 Console.cpp.