Rudiments
Public Member Functions
server Class Reference

Inherits filedescriptor.

Inherited by modemserver, and serversocket.

List of all members.

Public Member Functions

 server ()
 server (const server &s)
serveroperator= (const server &s)
virtual ~server ()
virtual bool bind ()=0
virtual bool listen (int32_t backlog)=0
virtual filedescriptoraccept ()=0

Detailed Description

The server class provides a base class for classes that implement the server side of a client-server communication model.


Constructor & Destructor Documentation

server::server ( )

Creates an instance of the server class.

server::server ( const server s)

Creates an instance of the server class that is a copy of "s".

virtual server::~server ( ) [virtual]

Deletes this instance of the server class.


Member Function Documentation

virtual filedescriptor* server::accept ( ) [pure virtual]

This method must be implemented by a child class to accept the client connection and return a file descriptor that can be used to communicate with the client.

Implemented in inetserversocket, modemserver, and unixserversocket.

virtual bool server::bind ( ) [pure virtual]

This method must be implemented by a child class to associated the server with an address.

Implemented in inetserversocket, modemserver, and unixserversocket.

virtual bool server::listen ( int32_t  backlog) [pure virtual]

This method must be implemented by a child class to wait for client connections and fall through when a client connects.

Implemented in inetserversocket, modemserver, serversocket, and unixserversocket.

server& server::operator= ( const server s)

Makes this instance of the server class identical to "s".