User Manual, Developers Guide and API Documentation

simpletl::Routing Class Reference

This class and its static methods help nodes to magically communicate with each other. Every SimpleTL layer in a node can use this class to obtain a pointer to the ConnectionHandler of a port in another node. The ConnectionHandler can then be used to open and close connections.

#include <Routing.hpp>

Collaboration diagram for simpletl::Routing:

Collaboration graph
[legend]

List of all members.

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()


Detailed Description

Definition at line 45 of file Routing.hpp.


Member Typedef Documentation

Definition at line 73 of file Routing.hpp.

Definition at line 72 of file Routing.hpp.


Member Function Documentation

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.


Member Data Documentation

Definition at line 74 of file Routing.hpp.


The documentation for this class was generated from the following files:

Generated on Sat May 26 03:32:39 2012 for openWNS by  doxygen 1.5.5