IBR-DTNSuite
0.12
|
#include <lowpanstream.h>
Public Member Functions | |
lowpanstream (lowpanstream_callback &callback, const ibrcommon::vaddress &address) | |
virtual | ~lowpanstream () |
void | queue (char *buf, size_t 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 | |
const ibrcommon::vaddress | _address |
Definition at line 45 of file lowpanstream.h.
ibrcommon::lowpanstream::lowpanstream | ( | lowpanstream_callback & | callback, |
const ibrcommon::vaddress & | address | ||
) |
Definition at line 65 of file lowpanstream.cpp.
References BUFF_SIZE.
|
virtual |
Definition at line 75 of file lowpanstream.cpp.
void ibrcommon::lowpanstream::abort | ( | ) |
Definition at line 79 of file lowpanstream.cpp.
References ibrcommon::Conditional::signal(), and ibrcommon::Conditional::wait().
|
protectedvirtual |
Definition at line 156 of file lowpanstream.cpp.
References _address, BUFF_SIZE, IBRCOMMON_LOGGER_DEBUG_TAG, IBRCOMMON_LOGGER_ENDL, SEGMENT_FIRST, SEGMENT_LAST, SEGMENT_MIDDLE, and ibrcommon::lowpanstream_callback::send_cb().
Referenced by sync().
void ibrcommon::lowpanstream::queue | ( | char * | buf, |
size_t | 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 92 of file lowpanstream.cpp.
References ibrcommon::LogLevel::error, IBRCOMMON_LOGGER_DEBUG_TAG, IBRCOMMON_LOGGER_ENDL, IBRCOMMON_LOGGER_TAG, SEGMENT_FIRST, SEGMENT_LAST, SEQ_NUM_MASK, ibrcommon::Conditional::signal(), and ibrcommon::Conditional::wait().
Referenced by dtn::net::LOWPANConvergenceLayer::componentRun().
|
protectedvirtual |
Definition at line 142 of file lowpanstream.cpp.
References IBRCOMMON_LOGGER_DEBUG_TAG, IBRCOMMON_LOGGER_ENDL, overflow(), and SEGMENT_LAST.
|
protectedvirtual |
Definition at line 207 of file lowpanstream.cpp.
References IBRCOMMON_LOGGER_DEBUG_TAG, IBRCOMMON_LOGGER_ENDL, ibrcommon::Conditional::signal(), and ibrcommon::Conditional::wait().
|
protected |
Definition at line 70 of file lowpanstream.h.
Referenced by overflow().
|
static |
Size of the input and output buffers.
Definition at line 51 of file lowpanstream.h.
Referenced by lowpanstream(), and overflow().