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.
|
using | RxCallback = void(*)(void *ctx, const uint8_t *pkt, size_t pktLen, uint64_t endpointId) |
|
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...
|
|
Mixin of RX queue in Transport, allocating buffers from DynamicRegion.
◆ DynamicRxQueueMixin()
ndnph::transport::DynamicRxQueueMixin::DynamicRxQueueMixin |
( |
size_t |
bufLen = DEFAULT_BUFLEN | ) |
|
|
inlineexplicitprotected |
Constructor.
- Parameters
-
bufLen | buffer length, typically MTU. |
◆ DEFAULT_BUFLEN
constexpr size_t ndnph::transport::DynamicRxQueueMixin::DEFAULT_BUFLEN = 1500 |
|
staticconstexpr |
The documentation for this class was generated from the following file: