#include <ArClientSwitchManager.h>
Inheritance diagram for ArClientSwitchManager:

'user user', 'password password' and 'serverKey serverKey'. Note that it loads these files sequentially so if you pass it 5 files it'll read them in the order they were passed in. If you give it just the keyword but not the value (ie 'user') then it'll clear out that value.
Some program command line options can be used to configure this class:
ArClientSwitchManager options: -centralServer <host> -cs <host> -centralServerPort <port> -csp <port> -identifier <identifier> -id <identifier> -centralServerInfoFile <fileName>
enum ArClientSwitchManager::State [protected] |
| ArClientSwitchManager::ArClientSwitchManager | ( | ArServerBase * | serverBase, | |
| ArArgumentParser * | parser | |||
| ) |
| ArClientSwitchManager::~ArClientSwitchManager | ( | ) | [virtual] |
| void ArClientSwitchManager::clientSwitch | ( | ArNetPacket * | packet | ) |
The handler for the response to the switch command.
| bool ArClientSwitchManager::filePasswordCallback | ( | ArArgumentBuilder * | arg | ) | [protected] |
| bool ArClientSwitchManager::fileServerKeyCallback | ( | ArArgumentBuilder * | arg | ) | [protected] |
| bool ArClientSwitchManager::fileUserCallback | ( | ArArgumentBuilder * | arg | ) | [protected] |
| const char * ArClientSwitchManager::getCentralServerHostName | ( | void | ) |
Gets the hostname we're using for the central server (NULL means we're not trying to sue the central server).
| bool ArClientSwitchManager::getDebugLogging | ( | void | ) | [inline] |
Gets if this is using debug logging.
| bool ArClientSwitchManager::isConnected | ( | void | ) |
Returns if we're connected or not.
| void ArClientSwitchManager::logOptions | ( | void | ) | const |
Log the options the simple connector has.
| void ArClientSwitchManager::netCentralHeartbeat | ( | ArServerClient * | client, | |
| ArNetPacket * | packet | |||
| ) |
The handler for the packet to let the server know we're still talking to it.
| void ArClientSwitchManager::netCentralServerHeartbeat | ( | ArServerClient * | client, | |
| ArNetPacket * | packet | |||
| ) |
The handler for the packet that comes from the server so we know we're getting these.
| bool ArClientSwitchManager::parseArgs | ( | void | ) |
Function to parse the arguments given in the constructor.
| bool ArClientSwitchManager::parseFile | ( | const char * | fileName | ) |
Parses the file for holding the user, password, and server key.
| bool ArClientSwitchManager::processFile | ( | void | ) | [protected] |
| void * ArClientSwitchManager::runThread | ( | void * | arg | ) | [virtual] |
Implements ArASyncTask.
| void ArClientSwitchManager::setDebugLogging | ( | bool | debugLogging = false |
) | [inline] |
Sets debug logging.
| void ArClientSwitchManager::socketClosed | ( | void | ) | [protected] |
| void ArClientSwitchManager::switchState | ( | State | state | ) | [protected] |
std::string ArClientSwitchManager::myCentralServer [protected] |
int ArClientSwitchManager::myCentralServerPort [protected] |
ArClientBase* ArClientSwitchManager::myClient [protected] |
ArMutex ArClientSwitchManager::myDataMutex [protected] |
bool ArClientSwitchManager::myDebugLogging [protected] |
ArFileParser ArClientSwitchManager::myFileParser [protected] |
ArRetFunctor1C<bool, ArClientSwitchManager, ArArgumentBuilder *> ArClientSwitchManager::myFilePasswordCB [protected] |
ArRetFunctor1C<bool, ArClientSwitchManager, ArArgumentBuilder *> ArClientSwitchManager::myFileServerKeyCB [protected] |
ArRetFunctor1C<bool, ArClientSwitchManager, ArArgumentBuilder *> ArClientSwitchManager::myFileUserCB [protected] |
std::string ArClientSwitchManager::myIdentifier [protected] |
ArTime ArClientSwitchManager::myLastConnectionAttempt [protected] |
ArTime ArClientSwitchManager::myLastTcpHeartbeat [protected] |
ArTime ArClientSwitchManager::myLastUdpHeartbeat [protected] |
ArFunctor2C<ArClientSwitchManager, ArServerClient *, ArNetPacket *> ArClientSwitchManager::myNetCentralHeartbeatCB [protected] |
ArFunctor2C<ArClientSwitchManager, ArServerClient *, ArNetPacket *> ArClientSwitchManager::myNetCentralServerHeartbeatCB [protected] |
ArRetFunctorC<bool, ArClientSwitchManager> ArClientSwitchManager::myParseArgsCB [protected] |
ArArgumentParser* ArClientSwitchManager::myParser [protected] |
std::string ArClientSwitchManager::myPassword [protected] |
ArRetFunctorC<bool, ArClientSwitchManager> ArClientSwitchManager::myProcessFileCB [protected] |
ArServerBase* ArClientSwitchManager::myServer [protected] |
double ArClientSwitchManager::myServerBackupTimeout [protected] |
ArServerClient* ArClientSwitchManager::myServerClient [protected] |
bool ArClientSwitchManager::myServerHasHeartbeat [protected] |
double ArClientSwitchManager::myServerHeartbeatTimeout [protected] |
std::string ArClientSwitchManager::myServerKey [protected] |
double ArClientSwitchManager::myServerUdpHeartbeatTimeout [protected] |
ArTime ArClientSwitchManager::myStartedState [protected] |
State ArClientSwitchManager::myState [protected] |
ArFunctor1C<ArClientSwitchManager, ArNetPacket *> ArClientSwitchManager::mySwitchCB [protected] |
bool ArClientSwitchManager::myTryConnection [protected] |
std::string ArClientSwitchManager::myUser [protected] |
1.4.7