|
esp8266ndn
NDN Arduino library for ESP8266 and more
|
Overwrite endpointId of outgoing packets. More...
#include <transport-force-endpointid.hpp>
Inherits ndnph::transport::TransportWrap.
Public Member Functions | |
| ForceEndpointId (Transport &inner, uint64_t endpointId=0) | |
Public Member Functions inherited from ndnph::transport::Transport | |
| 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. | |
Private Member Functions | |
| bool | doSend (const uint8_t *pkt, size_t pktLen, uint64_t) final |
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) |
Protected Member Functions inherited from ndnph::transport::TransportWrap | |
| TransportWrap (Transport &inner) | |
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. | |
Protected Attributes inherited from ndnph::transport::TransportWrap | |
| Transport & | inner |
Overwrite endpointId of outgoing packets.
One use case is to wrap a transport that is capable of both multicast and unicast, and force every outgoing packet to be sent over multicast.
|
inlineexplicit |
|
inlinefinalprivatevirtual |
Implements ndnph::transport::Transport.