Rudiments
Static Public Member Functions
clientserverfactory Class Reference

List of all members.

Static Public Member Functions

static clientgetClient (const char *type)
static servergetServer (const char *type)

Detailed Description

The clientserverfactory class provides factory methods for creating clients and servers.


Member Function Documentation

static client* clientserverfactory::getClient ( const char *  type) [static]

Returns an instance of a child of the client class as follows:

type class "inet" inetclientsocket "unix" unixclientsocket "modem" modemclient anything else NULL

static server* clientserverfactory::getServer ( const char *  type) [static]

Returns an instance of a child of the server class as follows:

type class "inet" inetserversocket "unix" unixserversocket "modem" modemserver anything else NULL