User Manual, Developers Guide and API Documentation

simpletl::UDP Class Reference

This simple UDP service instantly creates a connection.

#include <service/UDP.hpp>

Inheritance diagram for simpletl::UDP:

Inheritance graph
[legend]
Collaboration diagram for simpletl::UDP:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void closeConnection (wns::service::tl::Connection *_connection)
 Called by higher layer to instantly release a connection to a peer node.
virtual void listenOnPort (wns::service::tl::Port _port, wns::service::tl::ConnectionHandler *_ch)
 Called by higher layer to open a port for incoming connections. The provided connection handler is stored at the global Routing instance for the local IP address and the provided port. On first call the node IP address is registered at the Routing instance.
virtual void openConnection (wns::service::tl::Port _port, wns::service::nl::FQDN _source, wns::service::nl::FQDN _peerInstance, wns::service::qos::QoSClass _qosClass, wns::service::tl::ConnectionHandler *_ch)
 Called by higher layer to instantly establish a connection to a peer node.
 UDP (const wns::pyconfig::View &)
virtual ~UDP ()

Private Attributes

wns::events::scheduler::Interfaceeventscheduler
 The global event scheduler used to schedule the PDU transmission end events.
wns::logger::Logger logger
 The logger for debug output.
wns::service::tl::PortPoolportPool
 The pool of ports used to draw a port for a new outgoing connection.
wns::pyconfig::View pyco
 The Python configuration.
bool registered
 Flag determining if node already registered its IP address at the global Routing instance.


Detailed Description

Definition at line 42 of file UDP.hpp.


Constructor & Destructor Documentation

UDP::UDP ( const wns::pyconfig::View _pyco  ) 

Definition at line 39 of file UDP.cpp.

UDP::~UDP (  )  [virtual]

Definition at line 49 of file UDP.cpp.


Member Function Documentation

void UDP::closeConnection ( wns::service::tl::Connection _connection  )  [virtual]

See also:
Connection

Implements wns::service::tl::Service.

Definition at line 81 of file UDP.cpp.

void UDP::listenOnPort ( wns::service::tl::Port  _port,
wns::service::tl::ConnectionHandler _ch 
) [virtual]

Implements wns::service::tl::Service.

Definition at line 94 of file UDP.cpp.

void UDP::openConnection ( wns::service::tl::Port  _port,
wns::service::nl::FQDN  _source,
wns::service::nl::FQDN  _peerInstance,
wns::service::qos::QoSClass  _qosClass,
wns::service::tl::ConnectionHandler _ch 
) [virtual]

See also:
Connection

Implements wns::service::tl::Service.

Definition at line 54 of file UDP.cpp.


Member Data Documentation

Definition at line 83 of file UDP.hpp.

Definition at line 98 of file UDP.hpp.

Definition at line 93 of file UDP.hpp.

Definition at line 78 of file UDP.hpp.

Definition at line 88 of file UDP.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