IBR-DTNSuite  0.10
dtn::net::LOWPANConnection Class Reference

#include <LOWPANConnection.h>

Inheritance diagram for dtn::net::LOWPANConnection:
Inheritance graph
Collaboration diagram for dtn::net::LOWPANConnection:
Collaboration graph

Public Member Functions

 LOWPANConnection (const ibrcommon::vaddress &_address, LOWPANConvergenceLayer &cl)
 
virtual ~LOWPANConnection ()
 
ibrcommon::lowpanstreamgetStream ()
 
void run () throw ()
 
void setup () throw ()
 
void finally () throw ()
 
void __cancellation () throw ()
 
- Public Member Functions inherited from ibrcommon::DetachedThread
virtual ~DetachedThread ()=0
 
void start (int priority=0) throw (ThreadException)
 
void stop () throw (ThreadException)
 

Public Attributes

const ibrcommon::vaddress _address
 
LOWPANConnectionSender _sender
 

Additional Inherited Members

- Protected Member Functions inherited from ibrcommon::DetachedThread
 DetachedThread (size_t size=DEFAULT_STACKSIZE)
 
- Static Protected Member Functions inherited from ibrcommon::Thread
static size_t getNumberOfProcessors ()
 
static void yield (void)
 
static void sleep (time_t timeout)
 
static void concurrency (int level)
 
static bool equal (pthread_t thread1, pthread_t thread2)
 
static void * __execute__ (void *obj) throw ()
 

Detailed Description

Definition at line 56 of file LOWPANConnection.h.

Constructor & Destructor Documentation

dtn::net::LOWPANConnection::LOWPANConnection ( const ibrcommon::vaddress _address,
LOWPANConvergenceLayer cl 
)

LOWPANConnection constructor

Parameters
_addressIEEE 802.15.4 short address to identfy the connection
LOWPANConvergenceLayerreference

Definition at line 47 of file LOWPANConnection.cpp.

dtn::net::LOWPANConnection::~LOWPANConnection ( )
virtual

Definition at line 52 of file LOWPANConnection.cpp.

Member Function Documentation

void dtn::net::LOWPANConnection::__cancellation ( ) throw ()
virtual

Implements ibrcommon::Thread.

Definition at line 105 of file LOWPANConnection.cpp.

References _sender, and ibrcommon::JoinableThread::stop().

Here is the call graph for this function:

void dtn::net::LOWPANConnection::finally ( void  ) throw ()
virtual

This method is called when the run() method finishes.

Reimplemented from ibrcommon::Thread.

Definition at line 66 of file LOWPANConnection.cpp.

References _sender, ibrcommon::JoinableThread::join(), dtn::net::LOWPANConvergenceLayer::remove(), and ibrcommon::JoinableThread::stop().

Here is the call graph for this function:

ibrcommon::lowpanstream & dtn::net::LOWPANConnection::getStream ( )

Getting the lowpanstream connected with the LOWPANConnection

Returns
lowpanstream reference

Definition at line 56 of file LOWPANConnection.cpp.

Referenced by dtn::net::LOWPANConvergenceLayer::componentRun().

void dtn::net::LOWPANConnection::run ( ) throw ()
virtual
void dtn::net::LOWPANConnection::setup ( void  ) throw ()
virtual

This method is called before the run.

Reimplemented from ibrcommon::Thread.

Definition at line 61 of file LOWPANConnection.cpp.

References _sender, and ibrcommon::JoinableThread::start().

Here is the call graph for this function:

Member Data Documentation

const ibrcommon::vaddress dtn::net::LOWPANConnection::_address

IEEE 802.15.4 short address of the node this connection handles data for.

Definition at line 71 of file LOWPANConnection.h.

Referenced by run().

LOWPANConnectionSender dtn::net::LOWPANConnection::_sender

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