#include <Inetd.h>
Inherits Service< T >< Inetd >.
Inheritance diagram for Inetd:


Static Public Member Functions | |
| static String | NAME () |
| static String | MANUAL () |
| static unsigned int | instancesNumberLimit () |
Protected Member Functions | |
| Inetd (const ValueList ¶ms) | |
| virtual | ~Inetd () |
Private Types | |
| typedef map< TcpServer *, InetdItem > | InetdServerList |
| typedef map< unsigned int, TcpServer * > | InetdServersByPort |
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 |
| Core * | _core |
| InetdServersByPort | _serversByPort |
Friends | |
| class | Service< Inetd > |
Definition at line 50 of file Inetd.h.
typedef map<TcpServer *, InetdItem> Inetd::InetdServerList [private] |
typedef map<unsigned int, TcpServer *> Inetd::InetdServersByPort [private] |
| 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] |
| 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] |
| unsigned int Inetd::instancesNumberLimit | ( | ) | [static] |
| Inetd::REGISTRY | ( | vector< InetdItem > | , | |
| services | , | |||
| vector< InetdItem > | (), | |||
| MAN_INETD_SERVICES | ||||
| ) | [private] |
| Inetd::SLOT | ( | startService | , | |
| TcpConnection * | ||||
| ) | [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().
InetdServerList Inetd::_servers [private] |
vector<InetdItem> Inetd::_services [private] |
Core* Inetd::_core [private] |
InetdServersByPort Inetd::_serversByPort [private] |
1.5.1