User Manual, Developers Guide and API Documentation

wns::service::nl::DataHandler Class Reference

Nl DataHandler interface. More...

#include <service/nl/DataHandler.hpp>

Inheritance diagram for wns::service::nl::DataHandler:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void onData (Address _sourceIP, const wns::osi::PDUPtr &_pdu)=0
 Receive data from lower Nl layer.
virtual ~DataHandler ()
 Destructor.


Detailed Description

Nl components need a callback to deliver incoming data. Users of wns::node::component::nl::Service can register such a callback by calling wns::node::component::nl::Service::registerDataHandler and passing an implementation of wns::node::component::nl::DataHandler

Definition at line 46 of file DataHandler.hpp.


Constructor & Destructor Documentation

virtual wns::service::nl::DataHandler::~DataHandler (  )  [inline, virtual]

Definition at line 53 of file DataHandler.hpp.


Member Function Documentation

virtual void wns::service::nl::DataHandler::onData ( Address  _sourceIP,
const wns::osi::PDUPtr _pdu 
) [pure virtual]

Parameters:
[in] _sourceIP Source IP address of this data. Therefor TCP/IP is called a protocol suite.
[in] _pdu Data that is delivered to the Datahandler.

Implemented in constanze::IpListenerBinding, ip::tunnel::TunnelExitComponent, and tcp::IPDataHandler.


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

Generated on Fri Feb 10 03:34:04 2012 for openWNS by  doxygen 1.5.5