My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::Server Class Reference
Inheritance diagram for gcp::util::Server:
gcp::util::Runnable gcp::util::TipperServer gcp::util::WxServer gcp::util::WxServer40m gcp::util::WxServerSA

Classes

struct  ServerConnection
 

Public Member Functions

 Server (bool spawnThread, int listenPort, unsigned readBufSize=0, unsigned sendBufSize=0)
 
virtual ~Server ()
 
virtual void run ()
 
- 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 timeOutAction ()
 
virtual void readClientData (NetHandler &handler)
 
virtual void acceptClientAction ()
 
virtual void checkOtherFds ()
 
void sendClientData (NetDat &dat)
 
void setReadBufSize (unsigned size)
 
void setSendBufSize (unsigned size)
 
void setTimeOutSeconds (unsigned int seconds)
 
- Protected Member Functions inherited from gcp::util::Runnable
virtual void broadcastReady ()
 
void spawn (void *arg)
 

Protected Attributes

unsigned readBufSize_
 
unsigned sendBufSize_
 
TimeOut timeOut_
 
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

Server::Server ( bool  spawnThread,
int  listenPort,
unsigned  readBufSize = 0,
unsigned  sendBufSize = 0 
)

Constructor for serial connections

....................................................................... Constructor for a serial connection

Server::~Server ( )
virtual

Destructor.

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

Member Function Documentation

void Server::run ( void  )
virtual

Block in select

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

void Server::sendClientData ( NetDat dat)
protected

....................................................................... Method to send data to all connected clients

Member Data Documentation

FdSet gcp::util::Server::fdSet_
protected

The set of sockets to be watched


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