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

Mixin of RX queue in Transport, allocating buffers from DynamicRegion. More...

#include <transport-rxqueue.hpp>

Inherits ndnph::transport::RxQueueMixin.

Inherited by esp8266ndn::BleServerTransportBase, esp8266ndn::EthernetTransport, ndnph::BridgeTransport, and ndnph::port_transport_socket::UdpUnicastTransport.

Static Public Attributes

static constexpr size_t DEFAULT_BUFLEN = 1500
 

Protected Member Functions

 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...
 
- 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...
 

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...
 

Detailed Description

Mixin of RX queue in Transport, allocating buffers from DynamicRegion.

Constructor & Destructor Documentation

◆ DynamicRxQueueMixin()

ndnph::transport::DynamicRxQueueMixin::DynamicRxQueueMixin ( size_t  bufLen = DEFAULT_BUFLEN)
inlineexplicitprotected

Constructor.

Parameters
bufLenbuffer length, typically MTU.

Member Data Documentation

◆ DEFAULT_BUFLEN

constexpr size_t ndnph::transport::DynamicRxQueueMixin::DEFAULT_BUFLEN = 1500
staticconstexpr

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