#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.
Definition at line 41 of file ArClientSwitchManager.h.
|
Definition at line 72 of file ArClientSwitchManager.h. |
|
|
Definition at line 71 of file ArClientSwitchManager.cpp. |
|
The handler for the response to the switch command.
Definition at line 163 of file ArClientSwitchManager.cpp. References ArThread::cancel(), client, CONNECTED, ArClientBase::getTcpSocket(), ArMutex::lock(), ArLog::log(), ArServerBase::makeNewServerClientFromSocket(), myClient, myDataMutex, myServer, mySocketClosedCB, ArSocket::setCloseCallback(), switchState(), and ArMutex::unlock(). |
|
Definition at line 316 of file ArClientSwitchManager.cpp. References ArLog::log(), and myPassword. |
|
Definition at line 331 of file ArClientSwitchManager.cpp. References ArLog::log(), and myServerKey. |
|
Definition at line 300 of file ArClientSwitchManager.cpp. References ArLog::log(), and myUser. |
|
Gets the hostname we're using for the central server (NULL means we're not trying to sue the central server).
Definition at line 346 of file ArClientSwitchManager.cpp. References myCentralServer. |
|
Log the options the simple connector has.
Definition at line 142 of file ArClientSwitchManager.cpp. References ArLog::log(). |
|
The handler for the packet to let the server know we're still talking to it.
Definition at line 278 of file ArClientSwitchManager.cpp. References client, ArClientBase::sendPacketTcp(), and ArClientBase::sendPacketUdp(). |
|
Function to parse the arguments given in the constructor.
Definition at line 82 of file ArClientSwitchManager.cpp. References ArArgumentParser::checkParameterArgumentInteger(), ArArgumentParser::checkParameterArgumentString(), ArMutex::lock(), myCentralServer, myCentralServerPort, myDataMutex, myIdentifier, myParser, myState, parseFile(), TRYING_CONNECTION, and ArMutex::unlock(). |
|
Parses the file for holding the user, password, and server key.
Definition at line 286 of file ArClientSwitchManager.cpp. References ArLog::log(), myFileParser, and ArFileParser::parseFile(). Referenced by parseArgs(). |
|
|
Definition at line 185 of file ArClientSwitchManager.cpp. References CONNECTED, ArMutex::lock(), ArLog::log(), LOST_CONNECTION, myDataMutex, myState, switchState(), and ArMutex::unlock(). |
|
Definition at line 75 of file ArClientSwitchManager.cpp. References myGaveTimeWarning, myStartedState, myState, and ArTime::setToNow(). Referenced by ArClientSwitchManager(), clientSwitch(), runThread(), and socketClosed(). |
|
Definition at line 95 of file ArClientSwitchManager.h. Referenced by getCentralServerHostName(), parseArgs(), and runThread(). |
|
Definition at line 96 of file ArClientSwitchManager.h. Referenced by ArClientSwitchManager(), parseArgs(), and runThread(). |
|
Definition at line 89 of file ArClientSwitchManager.h. Referenced by ArClientSwitchManager(), clientSwitch(), and runThread(). |
|
Definition at line 86 of file ArClientSwitchManager.h. Referenced by clientSwitch(), parseArgs(), runThread(), and socketClosed(). |
|
Definition at line 66 of file ArClientSwitchManager.h. Referenced by ArClientSwitchManager(), and parseFile(). |
|
Definition at line 108 of file ArClientSwitchManager.h. Referenced by ArClientSwitchManager(). |
|
Definition at line 110 of file ArClientSwitchManager.h. Referenced by ArClientSwitchManager(). |
|
Definition at line 106 of file ArClientSwitchManager.h. Referenced by ArClientSwitchManager(). |
|
Definition at line 82 of file ArClientSwitchManager.h. Referenced by runThread(), and switchState(). |
|
Definition at line 97 of file ArClientSwitchManager.h. Referenced by parseArgs(), and runThread(). |
|
Definition at line 100 of file ArClientSwitchManager.h. Referenced by ArClientSwitchManager(). |
|
Definition at line 104 of file ArClientSwitchManager.h. Referenced by ArClientSwitchManager(). |
|
Definition at line 99 of file ArClientSwitchManager.h. Referenced by ArClientSwitchManager(). |
|
Definition at line 64 of file ArClientSwitchManager.h. Referenced by ArClientSwitchManager(), and parseArgs(). |
|
Definition at line 92 of file ArClientSwitchManager.h. Referenced by filePasswordCallback(), and runThread(). |
|
Definition at line 63 of file ArClientSwitchManager.h. Referenced by ArClientSwitchManager(), and clientSwitch(). |
|
Definition at line 93 of file ArClientSwitchManager.h. Referenced by fileServerKeyCallback(), and runThread(). |
|
Definition at line 101 of file ArClientSwitchManager.h. Referenced by clientSwitch(). |
|
Definition at line 81 of file ArClientSwitchManager.h. Referenced by runThread(), and switchState(). |
|
Definition at line 80 of file ArClientSwitchManager.h. Referenced by parseArgs(), runThread(), socketClosed(), and switchState(). |
|
Definition at line 102 of file ArClientSwitchManager.h. Referenced by ArClientSwitchManager(), and runThread(). |
|
Definition at line 88 of file ArClientSwitchManager.h. |
|
Definition at line 91 of file ArClientSwitchManager.h. Referenced by fileUserCallback(), and runThread(). |