Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members  

ServerSocket Class Reference

#include <ServerSocket.h>

Inheritance diagram for ServerSocket:

List of all members.

Public Methods

 ServerSocket ()
virtual Socketaccept ()=0
virtual bool ready ()=0

Detailed Description

The abstract ServerSocket class defines an interface to classes that listen for incoming connections and return Socket objects.


Constructor & Destructor Documentation

ServerSocket::ServerSocket  
 

Creates a new ServerSocket


Member Function Documentation

virtual Socket* ServerSocket::accept   [pure virtual]
 

Blocks while waiting for incoming connections. Returns a new Socket when a connection is received. The returned Socket should be freed by the caller.

Returns:
a new Socket with an active connection or NULL on failure.

virtual bool ServerSocket::ready   [pure virtual]
 

Checks if the server has been set up correctly.

Returns:
true iff the server is ready to go!


The documentation for this class was generated from the following files:
Generated on Wed Feb 18 13:45:56 2004 for strongroom by doxygen1.2.18