My Project
|
Public Member Functions | |
TipperCommunicator (gcp::util::FdSet *fdSet, std::string host) | |
int | getFtpCommFd () |
int | getFtpDataFd () |
TipperCommunicator (std::string host, unsigned timeOutIntervalInSeconds=0) | |
void | getTipperLog () |
void | initialize (std::string host) |
virtual | ~TipperCommunicator () |
void | initiateGetTipperLogCommSequence () |
void | concatenateString (std::ostringstream &os) |
void | processTipperLog () |
![]() | |
Communicator () | |
virtual | ~Communicator () |
bool | timedOut () |
virtual int | getFd () |
void | run () |
virtual void | processClientMessage () |
void | registerTimeOut () |
![]() | |
SpawnableTask (bool spawn) | |
virtual | ~SpawnableTask () |
![]() | |
void | sendRestartMsg () |
void | sendStopMsg () |
void | sendHeartBeatMsg () |
virtual void | fwdTaskMsg (TipperCommunicatorMsg *msg) |
![]() | |
RunnableTask (bool spawnThread) | |
virtual | ~RunnableTask () |
![]() | |
Runnable (bool spawnThread, RUN_FN(*runFn)) | |
Runnable (bool spawnThread, RUN_FN(*runFn), int priority) | |
virtual | ~Runnable () |
void | blockForever () |
void | spawn () |
Additional Inherited Members | |
![]() | |
static | RUN_FN (runFn) |
![]() | |
static | THREAD_START (startUp) |
![]() | |
static const unsigned | COMMAND_TIMEOUT_SEC = 10 |
![]() | |
void | enableTimeOut (bool enable) |
void | checkLine () |
virtual void | sendNextString (void) |
void | advanceIterator (bool bufferReset) |
void | checkIterators () |
![]() | |
void | run () |
![]() | |
GenericTask () | |
GenericTask (Thread *thread) | |
virtual | ~GenericTask () |
void | sendTaskMsg (TipperCommunicatorMsg *msg) |
void | startThreads (void *arg) |
void | startThread (void *arg, unsigned order) |
unsigned | getMinStartOrder () |
bool | threadsNeedStarting () |
void | cancelThreads () |
void | cancelThread (unsigned order) |
unsigned | getMinCancelOrder () |
bool | threadsNeedCancelling () |
void | pingThreads (void *arg) |
void | raise (std::string name, int sigNo) |
Thread * | getThread (std::string name) |
bool | threadsAreRunning () |
void | shutdownConnection (int fd) |
virtual void | restart (void) |
virtual void | processTaskMsg (bool *stop) |
virtual void | respondToHeartBeat () |
virtual void | installTimer (TipperCommunicatorMsg *msg) |
virtual void | installSignal (TipperCommunicatorMsg *msg) |
virtual void | enableTimer (TipperCommunicatorMsg *msg) |
virtual void | addHandler (TipperCommunicatorMsg *msg) |
void | stepCommands () |
![]() | |
virtual void | broadcastReady () |
void | spawn (void *arg) |
![]() | |
static | COMM_PARSER_FN (sendNextString) |
![]() | |
gcp::util::TcpClient * | client_ |
gcp::util::TimeVal | timer_ |
std::list< std::string > | sentStrings_ |
std::list< RcvdStr > | rcvdStrings_ |
std::list< std::string >::iterator | sentStringIter_ |
std::list< RcvdStr >::iterator | rcvdStringIter_ |
std::ostringstream | os_ |
![]() | |
Thread * | thread_ |
std::vector< Thread * > | threads_ |
PipeQ< TipperCommunicatorMsg > | msgq_ |
gcp::util::FdSet | fdSet_ |
std::vector< Command * > | commands_ |
struct timeval * | timeOut_ |
TimeVal | commandTimeOut_ |
![]() | |
Thread * | spawnedThread_ |
bool | spawned_ |
RUN_FN * | runFn_ |
TipperCommunicator::TipperCommunicator | ( | gcp::util::FdSet * | fdSet, |
std::string | host | ||
) |
....................................................................... Constructor.
TipperCommunicator::TipperCommunicator | ( | std::string | host, |
unsigned | timeOutIntervalInSeconds = 0 |
||
) |
....................................................................... Constructor.
|
virtual |
....................................................................... Destructor.
int TipperCommunicator::getFtpCommFd | ( | ) |
....................................................................... Return a reference to the fd corresonding to the comms link with the FTP server
int TipperCommunicator::getFtpDataFd | ( | ) |
....................................................................... Return a reference to the fd corresonding to the data link with the FTP server
void TipperCommunicator::getTipperLog | ( | ) |
....................................................................... Tell this object to retrieve the tipper log
void TipperCommunicator::initialize | ( | std::string | host | ) |
....................................................................... Initialize pertinent members of this class to sensible defaults
void TipperCommunicator::initiateGetTipperLogCommSequence | ( | ) |
....................................................................... Initiate sending commands to the server.
void TipperCommunicator::processTipperLog | ( | ) |
....................................................................... Process a tipper log received from a remote server