esp8266ndn
NDN Arduino library for ESP8266 and more
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Protected Member Functions | List of all members
esp8266ndn::BleServerTransportBase Class Reference

#include <ble-server-transport.hpp>

Inherits ndnph::transport::Transport, and ndnph::transport::DynamicRxQueueMixin.

Protected Member Functions

 BleServerTransportBase (size_t mtu)
 
void handleReceive (const uint8_t *pkt, size_t pktLen, uint64_t endpointId)
 
- Protected Member Functions inherited from ndnph::transport::Transport
void invokeRxCallback (const uint8_t *pkt, size_t pktLen, uint64_t endpointId=0)
 Invoke incoming packet callback for a received packet. More...
 
- Protected Member Functions inherited from ndnph::transport::DynamicRxQueueMixin
 DynamicRxQueueMixin (size_t bufLen=DEFAULT_BUFLEN)
 Constructor. More...
 
- Protected Member Functions inherited from ndnph::transport::RxQueueMixin
template<typename F >
void initAllocBuffers (const F &makeRegion)
 Allocate receive buffers during initialization. More...
 
RxContext receiving ()
 Receive packets in a loop. More...
 
void loopRxQueue ()
 Process periodical events. More...
 

Additional Inherited Members

- Public Types inherited from ndnph::transport::Transport
using RxCallback = void(*)(void *ctx, const uint8_t *pkt, size_t pktLen, uint64_t endpointId)
 
- Public Member Functions inherited from ndnph::transport::Transport
virtual ~Transport ()=default
 
bool isUp () const
 Determine whether transport is connected. More...
 
void loop ()
 Process periodical events, such as receiving packets. More...
 
void setRxCallback (RxCallback cb, void *ctx)
 Set incoming packet callback. More...
 
bool send (const uint8_t *pkt, size_t pktLen, uint64_t endpointId=0)
 Synchronously transmit a packet. More...
 
- Static Public Attributes inherited from ndnph::transport::DynamicRxQueueMixin
static constexpr size_t DEFAULT_BUFLEN = 1500
 

Constructor & Destructor Documentation

◆ BleServerTransportBase()

esp8266ndn::BleServerTransportBase::BleServerTransportBase ( size_t  mtu)
explicitprotected

Member Function Documentation

◆ handleReceive()

void esp8266ndn::BleServerTransportBase::handleReceive ( const uint8_t *  pkt,
size_t  pktLen,
uint64_t  endpointId 
)
protected

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