IBR-DTNSuite  0.10
ibrcommon::lowpanstream Class Reference

#include <lowpanstream.h>

Inheritance diagram for ibrcommon::lowpanstream:
Inheritance graph
Collaboration diagram for ibrcommon::lowpanstream:
Collaboration graph

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
 

Detailed Description

Definition at line 45 of file lowpanstream.h.

Constructor & Destructor Documentation

ibrcommon::lowpanstream::lowpanstream ( lowpanstream_callback callback,
const ibrcommon::vaddress address 
)

Definition at line 65 of file lowpanstream.cpp.

References BUFF_SIZE.

ibrcommon::lowpanstream::~lowpanstream ( )
virtual

Definition at line 75 of file lowpanstream.cpp.

Member Function Documentation

void ibrcommon::lowpanstream::abort ( )

Definition at line 79 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())
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().

Here is the call graph for this function:

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

Queueing data received from the CL worker thread for the LOWPANConnection

Parameters
bufBuffer with received data
lenLength 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().

Here is the call graph for this function:

int ibrcommon::lowpanstream::sync ( )
protectedvirtual

Definition at line 142 of file lowpanstream.cpp.

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

Here is the call graph for this function:

std::char_traits< char >::int_type ibrcommon::lowpanstream::underflow ( )
protectedvirtual

Definition at line 207 of file lowpanstream.cpp.

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

Here is the call graph for this function:

Member Data Documentation

const ibrcommon::vaddress ibrcommon::lowpanstream::_address
protected

Definition at line 70 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 51 of file lowpanstream.h.

Referenced by lowpanstream(), and overflow().


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