Rudiments
|
Inherits filedescriptor.
Inherited by modemserver, and serversocket.
Public Member Functions | |
server () | |
server (const server &s) | |
server & | operator= (const server &s) |
virtual | ~server () |
virtual bool | bind ()=0 |
virtual bool | listen (int32_t backlog)=0 |
virtual filedescriptor * | accept ()=0 |
The server class provides a base class for classes that implement the server side of a client-server communication model.
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.
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.