A transport that communicates over Ethernet.
More...
#include <ethernet-transport.hpp>
Inherits ndnph::transport::Transport, and ndnph::transport::DynamicRxQueueMixin.
|
| EthernetTransport () |
|
| ~EthernetTransport () override |
|
bool | begin (const char ifname[2], uint8_t ifnum) |
| Start intercepting NDN packets on a network interface.
|
|
bool | begin () |
| Start intercepting NDN packets on first available station interface.
|
|
void | end () |
| Disable the 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.
|
|
|
static void | listNetifs (Print &os) |
| Print a list of network interfaces.
|
|
|
bool | doIsUp () const final |
|
void | doLoop () final |
|
bool | doSend (const uint8_t *pkt, size_t pktLen, uint64_t endpointId) final |
|
A transport that communicates over Ethernet.
◆ EthernetTransport()
esp8266ndn::EthernetTransport::EthernetTransport |
( |
| ) |
|
◆ ~EthernetTransport()
esp8266ndn::EthernetTransport::~EthernetTransport |
( |
| ) |
|
|
override |
◆ begin() [1/2]
bool esp8266ndn::EthernetTransport::begin |
( |
| ) |
|
Start intercepting NDN packets on first available station interface.
- Returns
- whether success.
◆ begin() [2/2]
bool esp8266ndn::EthernetTransport::begin |
( |
const char |
ifname[2], |
|
|
uint8_t |
ifnum |
|
) |
| |
Start intercepting NDN packets on a network interface.
- Returns
- whether success.
◆ doIsUp()
bool esp8266ndn::EthernetTransport::doIsUp |
( |
| ) |
const |
|
finalprivatevirtual |
◆ doLoop()
void esp8266ndn::EthernetTransport::doLoop |
( |
| ) |
|
|
finalprivatevirtual |
◆ doSend()
bool esp8266ndn::EthernetTransport::doSend |
( |
const uint8_t * |
pkt, |
|
|
size_t |
pktLen, |
|
|
uint64_t |
endpointId |
|
) |
| |
|
finalprivatevirtual |
◆ end()
void esp8266ndn::EthernetTransport::end |
( |
| ) |
|
◆ listNetifs()
static void esp8266ndn::EthernetTransport::listNetifs |
( |
Print & |
os | ) |
|
|
static |
Print a list of network interfaces.
The documentation for this class was generated from the following file: