IBR-DTNSuite
0.8
|
#include <lowpanstream.h>
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 |
Definition at line 22 of file lowpanstream.h.
ibrcommon::lowpanstream::lowpanstream | ( | lowpanstream_callback & | callback, |
unsigned int | address | ||
) |
Definition at line 44 of file lowpanstream.cpp.
References BUFF_SIZE.
ibrcommon::lowpanstream::~lowpanstream | ( | ) | [virtual] |
Definition at line 54 of file lowpanstream.cpp.
void ibrcommon::lowpanstream::abort | ( | ) |
Definition at line 61 of file lowpanstream.cpp.
References ibrcommon::Conditional::signal(), and ibrcommon::Conditional::wait().
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().
void ibrcommon::lowpanstream::queue | ( | char * | buf, |
int | len | ||
) |
Queueing data received from the CL worker thread for the LOWPANConnection
buf | Buffer with received data |
len | Length 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().
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.
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().
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().