![]() |
User Manual, Developers Guide and API Documentation |
![]() |
#include <Routing.hpp>

Static Public Member Functions | |
| static wns::service::tl::ConnectionHandler * | getService (wns::service::nl::FQDN, int) |
| Returns the ConnectionHandler for the domain name / port pair. exits with error (assure) if no handler registered. | |
| static void | registerIP (wns::service::nl::FQDN) |
| Each node has to register with its domain name before it can register a ConnectionHandler for a port number. This is usually done on the first call of TCP::listenOnPort() or UDP::listenOnPort(). | |
| static void | setService (wns::service::nl::FQDN, int, wns::service::tl::ConnectionHandler *) |
| Registers a ConnectionHandler for a domain name and port pair. The domain name must be previously registered using registerIP(). | |
Private Types | |
| typedef std::map < wns::service::nl::FQDN, ServerServices > | ServerPorts |
| typedef std::map< int, wns::service::tl::ConnectionHandler * > | ServerServices |
Static Private Attributes | |
| static ServerPorts | serverports = Routing::ServerPorts() |
Definition at line 45 of file Routing.hpp.
typedef std::map<wns::service::nl::FQDN, ServerServices> simpletl::Routing::ServerPorts [private] |
Definition at line 73 of file Routing.hpp.
typedef std::map<int, wns::service::tl::ConnectionHandler*> simpletl::Routing::ServerServices [private] |
Definition at line 72 of file Routing.hpp.
| wns::service::tl::ConnectionHandler * Routing::getService | ( | wns::service::nl::FQDN | domainName, | |
| int | port | |||
| ) | [static] |
Definition at line 47 of file Routing.cpp.
| void Routing::registerIP | ( | wns::service::nl::FQDN | domainName | ) | [static] |
Definition at line 35 of file Routing.cpp.
| void Routing::setService | ( | wns::service::nl::FQDN | domainName, | |
| int | port, | |||
| wns::service::tl::ConnectionHandler * | ch | |||
| ) | [static] |
Definition at line 40 of file Routing.cpp.
Routing::ServerPorts Routing::serverports = Routing::ServerPorts() [static, private] |
Definition at line 74 of file Routing.hpp.
1.5.5