cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions
osaSocketServer.h File Reference

Declaration of osaSocketServerThis class implements a TCP server capable of handling multiple clients; for every client connection, the Accept method returns a new socket that can be used to service requests from that client. It is initialized as follows: More...

#include <cisstCommon/cmnClassRegister.h>
#include <cisstCommon/cmnLogger.h>
#include <cisstCommon/cmnPortability.h>
#include <cisstOSAbstraction/osaSocket.h>
#include <cisstOSAbstraction/osaExport.h>

Go to the source code of this file.

Classes

class  osaSocketServer
 

Functions

 CMN_DECLARE_SERVICES_INSTANTIATION (osaSocketServer)
 

Detailed Description

Declaration of osaSocketServer

This class implements a TCP server capable of handling multiple clients; for every client connection, the Accept method returns a new socket that can be used to service requests from that client. It is initialized as follows:

osaSocketServer socketServer;
socketServer.AssignPort(serverPort);
socketServer.Listen();
osaSocket *server;
do {
server = socketServer.Accept();
} while (server != 0);
Note
Please refer to osAbstractionTutorial/sockets for usage examples.

Function Documentation

CMN_DECLARE_SERVICES_INSTANTIATION ( osaSocketServer  )