My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::SshClient Class Reference
Inheritance diagram for gcp::util::SshClient:
gcp::util::Runnable gcp::util::TipperSshClient gcp::util::WxSshClient gcp::mediator::TipperSshClient gcp::util::TipperFileClient

Public Member Functions

 SshClient (bool spawn, std::string gateway, std::string host, unsigned connectPort, unsigned readBufSize=0, unsigned sendBufSize=0)
 
virtual ~SshClient ()
 
void run ()
 
void setReadBufSize (unsigned size)
 
void setSendBufSize (unsigned size)
 
- Public Member Functions inherited from gcp::util::Runnable
 Runnable (bool spawnThread, RUN_FN(*runFn))
 
 Runnable (bool spawnThread, RUN_FN(*runFn), int priority)
 
virtual ~Runnable ()
 
void blockForever ()
 
void spawn ()
 

Protected Member Functions

virtual void readServerData (NetHandler &handler)
 
void sendServerData (NetDat &dat)
 
void initMembers (std::string gateway, std::string host, unsigned port, unsigned readBufSize, unsigned sendBufSize)
 
void connect ()
 
void disconnect ()
 
virtual void reportError ()
 
- Protected Member Functions inherited from gcp::util::Runnable
virtual void broadcastReady ()
 
void spawn (void *arg)
 

Static Protected Member Functions

static RUN_FN (runFn)
 
static NET_READ_HANDLER (readHandler)
 
static NET_SEND_HANDLER (sendHandler)
 
static NET_ERROR_HANDLER (errHandler)
 

Protected Attributes

TimeVal timeOut_
 
struct timeval * timeOutPtr_
 
SshTunnel tunnel_
 
std::string gateway_
 
std::string host_
 
unsigned short port_
 
bool stop_
 
TcpClient tcp_
 
NetHandler handler_
 
FdSet fdSet_
 
- Protected Attributes inherited from gcp::util::Runnable
ThreadspawnedThread_
 
bool spawned_
 
RUN_FN * runFn_
 

Additional Inherited Members

- Static Public Member Functions inherited from gcp::util::Runnable
static THREAD_START (startUp)
 

Constructor & Destructor Documentation

SshClient::SshClient ( bool  spawnThread,
std::string  gateway,
std::string  host,
unsigned  port,
unsigned  readBufSize = 0,
unsigned  sendBufSize = 0 
)

Constructor.

....................................................................... Constructor.

SshClient::~SshClient ( )
virtual

Destructor.

....................................................................... Destructor.

Member Function Documentation

void SshClient::run ( void  )

Block in select

....................................................................... Block in select

void SshClient::sendServerData ( NetDat dat)
protected

....................................................................... Send data to the server


The documentation for this class was generated from the following files: