Inetd Class Reference

#include <Inetd.h>

Inherits Service< T >< Inetd >.

Inheritance diagram for Inetd:

Inheritance graph
Collaboration diagram for Inetd:

Collaboration graph
List of all members.

Static Public Member Functions

static String NAME ()
static String MANUAL ()
static unsigned int instancesNumberLimit ()

Protected Member Functions

 Inetd (const ValueList &params)
virtual ~Inetd ()

Private Types

typedef map< TcpServer *,
typedef map< unsigned int,
TcpServer * > 

Private Member Functions

 REGISTRY (vector< InetdItem >, services, vector< InetdItem >(), MAN_INETD_SERVICES)
 SLOT (startService, TcpConnection *)
int authorize (const InetdItem &item, TcpConnection *connection, bool &valid)

Private Attributes

InetdServerList _servers
vector< InetdItem_services
InetdServersByPort _serversByPort


class Service< Inetd >

Detailed Description

Definition at line 50 of file Inetd.h.

Member Typedef Documentation

typedef map<TcpServer *, InetdItem> Inetd::InetdServerList [private]

Definition at line 76 of file Inetd.h.

typedef map<unsigned int, TcpServer *> Inetd::InetdServersByPort [private]

Definition at line 77 of file Inetd.h.

Constructor & Destructor Documentation

Inetd::Inetd ( const ValueList params  )  [protected]

Definition at line 22 of file Inetd.cpp.

References _core, _servers, _serversByPort, _services, BIND, CONNECT, CORE(), CSTRING(), DEBUG, ERROR, ERROR_BACKTRACE(), FAILED(), Support::failure(), Support::failureCode(), MSG_OBJECT_CANNOT_CREATE, NAME(), String::number(), REGISTRY_GET, and SERVICE_MSG_INVALID_PARAMS.

Inetd::~Inetd (  )  [protected, virtual]

Definition at line 68 of file Inetd.cpp.

References _servers.

Member Function Documentation

String Inetd::NAME (  )  [inline, static]

Reimplemented from Service< T >.

Definition at line 90 of file Inetd.h.

References NAME_INETD.

Referenced by Inetd().

String Inetd::MANUAL (  )  [inline, static]

Reimplemented from Service< T >.

Definition at line 96 of file Inetd.h.

References MAN_INETD.

unsigned int Inetd::instancesNumberLimit (  )  [static]

Reimplemented from ServiceBase.

Definition at line 15 of file Inetd.cpp.

Inetd::REGISTRY ( vector< InetdItem ,
services  ,
vector< InetdItem (),
) [private]

Inetd::SLOT ( startService  ,
) [private]

int Inetd::authorize ( const InetdItem item,
TcpConnection connection,
bool valid 
) [private]

Definition at line 114 of file Inetd.cpp.

References Connection::clear(), CSTRING(), DEBUG, String::eol(), String::equals(), ERROR_BACKTRACE(), FAILED(), InetdItem::login, String::md5(), MSG_INETD_AUTHORIZATION_FAILED, MSG_INETD_LOGIN, MSG_INETD_PASSWORD, OK, InetdItem::password, Connection::readLn(), Telnet::setEcho(), String::trim(), and Connection::writeStr().

Friends And Related Function Documentation

friend class Service< Inetd > [friend]

Definition at line 53 of file Inetd.h.

Member Data Documentation

InetdServerList Inetd::_servers [private]

Definition at line 83 of file Inetd.h.

Referenced by Inetd(), and ~Inetd().

vector<InetdItem> Inetd::_services [private]

Definition at line 84 of file Inetd.h.

Referenced by Inetd().

Core* Inetd::_core [private]

Definition at line 85 of file Inetd.h.

Referenced by Inetd().

InetdServersByPort Inetd::_serversByPort [private]

Definition at line 86 of file Inetd.h.

Referenced by Inetd().

The documentation for this class was generated from the following files:
Generated on Thu Sep 6 20:13:41 2007 for Pylon Application Platform by  doxygen 1.5.1