Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MynahSA::TCPServer Class Reference

#include <tcpserver.hpp>

Collaboration diagram for MynahSA::TCPServer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TCPServer (TCPConnectionManager &sobj, int port)
 ~TCPServer ()
 destructor - close master socket
void checkClients (int wait_t=0)

Detailed Description

TCP server class

Definition at line 31 of file tcpserver.hpp.


Constructor & Destructor Documentation

MynahSA::TCPServer::TCPServer TCPConnectionManager sobj,
int  port
 

TCPServer constructor - takes a ConnectionManager object and a port to operate on port - the port to answer requests on


Member Function Documentation

void MynahSA::TCPServer::checkClients int  wait_t = 0  ) 
 

Check for new connections, block for wait_t amount of seconds, if no connection is made within wait_t function returns. This must be called regularly from within main


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