IBR-DTNSuite  0.8
ibrcommon::lowpanstream Class Reference

#include <lowpanstream.h>

List of all members.

Public Member Functions

 lowpanstream (lowpanstream_callback &callback, unsigned int address)
virtual ~lowpanstream ()
void queue (char *buf, int len)
void abort ()

Static Public Attributes

static const size_t BUFF_SIZE = 113

Protected Member Functions

virtual int sync ()
virtual std::char_traits< char >
::int_type 
overflow (std::char_traits< char >::int_type=std::char_traits< char >::eof())
virtual std::char_traits< char >
::int_type 
underflow ()

Protected Attributes

unsigned int _address

Detailed Description

Definition at line 22 of file lowpanstream.h.


Constructor & Destructor Documentation

ibrcommon::lowpanstream::lowpanstream ( lowpanstream_callback callback,
unsigned int  address 
)

Definition at line 44 of file lowpanstream.cpp.

References BUFF_SIZE.

Definition at line 54 of file lowpanstream.cpp.


Member Function Documentation

Definition at line 61 of file lowpanstream.cpp.

References ibrcommon::Conditional::signal(), and ibrcommon::Conditional::wait().

Here is the call graph for this function:

std::char_traits< char >::int_type ibrcommon::lowpanstream::overflow ( std::char_traits< char >::int_type  c = std::char_traits<char>::eof()) [protected, virtual]

Definition at line 138 of file lowpanstream.cpp.

References _address, BUFF_SIZE, IBRCOMMON_LOGGER_DEBUG, IBRCOMMON_LOGGER_ENDL, SEGMENT_FIRST, SEGMENT_LAST, SEGMENT_MIDDLE, and ibrcommon::lowpanstream_callback::send_cb().

Referenced by sync().

Here is the call graph for this function:

void ibrcommon::lowpanstream::queue ( char *  buf,
int  len 
)

Queueing data received from the CL worker thread for the LOWPANConnection

Parameters:
bufBuffer with received data
lenLength of the buffer

Definition at line 74 of file lowpanstream.cpp.

References IBRCOMMON_LOGGER, IBRCOMMON_LOGGER_DEBUG, IBRCOMMON_LOGGER_ENDL, SEGMENT_FIRST, SEGMENT_LAST, SEQ_NUM_MASK, ibrcommon::Conditional::signal(), and ibrcommon::Conditional::wait().

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

Here is the call graph for this function:

int ibrcommon::lowpanstream::sync ( ) [protected, virtual]

Definition at line 124 of file lowpanstream.cpp.

References IBRCOMMON_LOGGER_DEBUG, IBRCOMMON_LOGGER_ENDL, overflow(), and SEGMENT_LAST.

Here is the call graph for this function:

std::char_traits< char >::int_type ibrcommon::lowpanstream::underflow ( ) [protected, virtual]

Definition at line 189 of file lowpanstream.cpp.

References IBRCOMMON_LOGGER_DEBUG, IBRCOMMON_LOGGER_ENDL, ibrcommon::Conditional::signal(), and ibrcommon::Conditional::wait().

Here is the call graph for this function:


Member Data Documentation

unsigned int ibrcommon::lowpanstream::_address [protected]

Definition at line 47 of file lowpanstream.h.

Referenced by overflow().

const size_t ibrcommon::lowpanstream::BUFF_SIZE = 113 [static]

Size of the input and output buffers.

Definition at line 28 of file lowpanstream.h.

Referenced by lowpanstream(), and overflow().


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