replicode
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
mBrane::sdk::CommChannel Class Referenceabstract

#include <network_interface.h>

Inheritance diagram for mBrane::sdk::CommChannel:
Inheritance graph
Collaboration diagram for mBrane::sdk::CommChannel:
Collaboration graph

Public Member Functions

virtual ~CommChannel ()
 
virtual int16_t send (uint8_t *b, size_t s)=0
 
virtual int16_t recv (uint8_t *b, size_t s, bool peek=false)=0
 
virtual bool isConnected ()=0
 
virtual bool disconnect ()=0
 
int16_t bufferedSend (uint8_t *b, size_t s, bool sendNow=false)
 
int16_t send (_Payload *p, uint8_t destinationNID)
 
int16_t recv (_Payload **p, uint8_t sourceNID)
 

Protected Member Functions

 CommChannel ()
 
int16_t _send (__Payload *c, uint8_t destinationNID)
 
int16_t _recv (__Payload **c, uint8_t sourceNID)
 

Protected Attributes

std::mutex commSendMutex
 
std::mutex commRecvMutex
 
uint8_tsendBuffer
 
uint32_t sendBufferLen
 
uint32_t sendBufferPos
 

Constructor & Destructor Documentation

mBrane::sdk::CommChannel::CommChannel ( )
protected
mBrane::sdk::CommChannel::~CommChannel ( )
virtual

Member Function Documentation

int16_t mBrane::sdk::CommChannel::_recv ( __Payload **  c,
uint8_t  sourceNID 
)
inlineprotected

Here is the call graph for this function:

Here is the caller graph for this function:

int16_t mBrane::sdk::CommChannel::_send ( __Payload c,
uint8_t  destinationNID 
)
inlineprotected

Here is the call graph for this function:

Here is the caller graph for this function:

int16_t mBrane::sdk::CommChannel::bufferedSend ( uint8_t b,
size_t  s,
bool  sendNow = false 
)

Here is the call graph for this function:

Here is the caller graph for this function:

virtual bool mBrane::sdk::CommChannel::disconnect ( )
pure virtual

Implemented in TCPChannel, and UDPChannel.

Here is the caller graph for this function:

virtual bool mBrane::sdk::CommChannel::isConnected ( )
pure virtual

Implemented in TCPChannel, and UDPChannel.

virtual int16_t mBrane::sdk::CommChannel::recv ( uint8_t b,
size_t  s,
bool  peek = false 
)
pure virtual

Implemented in TCPChannel, and UDPChannel.

Here is the caller graph for this function:

int16_t mBrane::sdk::CommChannel::recv ( _Payload **  p,
uint8_t  sourceNID 
)

Here is the call graph for this function:

virtual int16_t mBrane::sdk::CommChannel::send ( uint8_t b,
size_t  s 
)
pure virtual

Implemented in TCPChannel, and UDPChannel.

Here is the caller graph for this function:

int16_t mBrane::sdk::CommChannel::send ( _Payload p,
uint8_t  destinationNID 
)

Here is the call graph for this function:

Member Data Documentation

std::mutex mBrane::sdk::CommChannel::commRecvMutex
protected
std::mutex mBrane::sdk::CommChannel::commSendMutex
protected
uint8_t* mBrane::sdk::CommChannel::sendBuffer
protected
uint32_t mBrane::sdk::CommChannel::sendBufferLen
protected
uint32_t mBrane::sdk::CommChannel::sendBufferPos
protected

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