1#ifndef ESP8266NDN_TRANSPORT_ETHERNET_TRANSPORT_HPP
2#define ESP8266NDN_TRANSPORT_ETHERNET_TRANSPORT_HPP
4#if defined(ARDUINO_ARCH_ESP8266) || defined(ARDUINO_ARCH_ESP32)
6#include "../port/port.hpp"
31 bool begin(
const char ifname[2], uint8_t ifnum);
43 bool begin(netif* netif);
49 bool doSend(const uint8_t* pkt,
size_t pktLen, uint64_t endpointId) final;
53 std::unique_ptr<Impl> m_impl;
A transport that communicates over Ethernet.
Definition ethernet-transport.hpp:18
void end()
Disable the transport.
bool begin(const char ifname[2], uint8_t ifnum)
Start intercepting NDN packets on a network interface.
bool doIsUp() const final
bool begin()
Start intercepting NDN packets on first available station interface.
bool doSend(const uint8_t *pkt, size_t pktLen, uint64_t endpointId) final
~EthernetTransport() override
static void listNetifs(Print &os)
Print a list of network interfaces.
Mixin of RX queue in Transport, allocating buffers from DynamicRegion.
Definition transport-rxqueue.hpp:134
Base class of low-level transport.
Definition transport.hpp:10
Definition autoconfig.hpp:24