Public Member Functions | Protected Member Functions

dtn::net::LOWPANConvergenceLayer Class Reference

#include <LOWPANConvergenceLayer.h>

Inherits dtn::net::ConvergenceLayer, dtn::daemon::IndependentComponent, and dtn::net::DiscoveryServiceProvider.

Collaboration diagram for dtn::net::LOWPANConvergenceLayer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LOWPANConvergenceLayer (ibrcommon::NetInterface net, int panid, bool broadcast=false, unsigned int mtu=127)
virtual ~LOWPANConvergenceLayer ()
virtual void update (std::string &name, std::string &data)
virtual bool onInterface (const ibrcommon::NetInterface &net) const
dtn::core::Node::Protocol getDiscoveryProtocol () const
void queue (const dtn::core::Node &n, const ConvergenceLayer::Job &job)
LOWPANConvergenceLayeroperator>> (dtn::data::Bundle &)
virtual const std::string getName () const

Protected Member Functions

virtual void componentUp ()
virtual void componentRun ()
virtual void componentDown ()
bool __cancellation ()

Detailed Description

This class implement a ConvergenceLayer for LOWPAN.

Definition at line 20 of file LOWPANConvergenceLayer.h.


Constructor & Destructor Documentation

dtn::net::LOWPANConvergenceLayer::LOWPANConvergenceLayer ( ibrcommon::NetInterface  net,
int  panid,
bool  broadcast = false,
unsigned int  mtu = 127 
)

Definition at line 42 of file LOWPANConvergenceLayer.cpp.

dtn::net::LOWPANConvergenceLayer::~LOWPANConvergenceLayer (  )  [virtual]

Definition at line 48 of file LOWPANConvergenceLayer.cpp.

References componentDown().

Here is the call graph for this function:


Member Function Documentation

bool dtn::net::LOWPANConvergenceLayer::__cancellation (  )  [protected]

Definition at line 191 of file LOWPANConvergenceLayer.cpp.

void dtn::net::LOWPANConvergenceLayer::componentDown (  )  [protected, virtual]

Definition at line 159 of file LOWPANConvergenceLayer.cpp.

References ibrcommon::JoinableThread::join(), and ibrcommon::lowpansocket::shutdown().

Referenced by ~LOWPANConvergenceLayer().

Here is the call graph for this function:

void dtn::net::LOWPANConvergenceLayer::componentRun (  )  [protected, virtual]

Definition at line 166 of file LOWPANConvergenceLayer.cpp.

References IBRCOMMON_LOGGER, dtn::net::BundleReceivedEvent::raise(), ibrcommon::Exception::what(), and ibrcommon::Thread::yield().

Here is the call graph for this function:

void dtn::net::LOWPANConvergenceLayer::componentUp (  )  [protected, virtual]
dtn::core::Node::Protocol dtn::net::LOWPANConvergenceLayer::getDiscoveryProtocol (  )  const

Definition at line 54 of file LOWPANConvergenceLayer.cpp.

const std::string dtn::net::LOWPANConvergenceLayer::getName (  )  const [virtual]
See also:
Component::getName()

Definition at line 197 of file LOWPANConvergenceLayer.cpp.

bool dtn::net::LOWPANConvergenceLayer::onInterface ( const ibrcommon::NetInterface net  )  const [virtual]

Reimplemented from dtn::net::DiscoveryServiceProvider.

Definition at line 67 of file LOWPANConvergenceLayer.cpp.

LOWPANConvergenceLayer & dtn::net::LOWPANConvergenceLayer::operator>> ( dtn::data::Bundle bundle  ) 

Definition at line 122 of file LOWPANConvergenceLayer.cpp.

References dtn::core::BundleCore::getInstance(), and ibrcommon::lowpansocket::receive().

Here is the call graph for this function:

void dtn::net::LOWPANConvergenceLayer::queue ( const dtn::core::Node n,
const ConvergenceLayer::Job job 
)
void dtn::net::LOWPANConvergenceLayer::update ( std::string &  name,
std::string &  data 
) [virtual]

Updates an discovery service block with current values

Parameters:
name 
data 

Implements dtn::net::DiscoveryServiceProvider.

Definition at line 59 of file LOWPANConvergenceLayer.cpp.

References ibrcommon::NetInterface::getAddress().

Here is the call graph for this function:


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