esp8266ndn
NDN Arduino library for ESP8266 and more
|
Base class of low-level transport. More...
#include <transport.hpp>
Inherited by esp8266ndn::BleServerTransportBase [virtual]
, esp8266ndn::EthernetTransport [virtual]
, esp8266ndn::UdpTransport [virtual]
, ndnph::BridgeTransport [virtual]
, ndnph::port_transport_memif::MemifTransport [virtual]
, ndnph::port_transport_socket::UdpUnicastTransport [virtual]
, ndnph::transport::RxQueueMixin [virtual]
, and ndnph::transport::TransportWrap [virtual]
.
Public Types | |
using | RxCallback = void(*)(void *ctx, const uint8_t *pkt, size_t pktLen, uint64_t endpointId) |
Public Member Functions | |
virtual | ~Transport ()=default |
bool | isUp () const |
Determine whether transport is connected. | |
void | loop () |
Process periodical events, such as receiving packets. | |
void | setRxCallback (RxCallback cb, void *ctx) |
Set incoming packet callback. | |
bool | send (const uint8_t *pkt, size_t pktLen, uint64_t endpointId=0) |
Synchronously transmit a packet. | |
Protected Member Functions | |
void | invokeRxCallback (const uint8_t *pkt, size_t pktLen, uint64_t endpointId=0) |
Invoke incoming packet callback for a received packet. | |
Private Member Functions | |
virtual bool | doIsUp () const =0 |
virtual void | doLoop ()=0 |
virtual bool | doSend (const uint8_t *pkt, size_t pktLen, uint64_t endpointId)=0 |
Base class of low-level transport.
using ndnph::transport::Transport::RxCallback = void (*)(void* ctx, const uint8_t* pkt, size_t pktLen, uint64_t endpointId) |
|
virtualdefault |
|
privatepure virtual |
|
privatepure virtual |
|
privatepure virtual |
|
inlineprotected |
Invoke incoming packet callback for a received packet.
|
inline |
Determine whether transport is connected.
|
inline |
Process periodical events, such as receiving packets.
|
inline |
Synchronously transmit a packet.
|
inline |
Set incoming packet callback.