26 #ifndef NFD_DAEMON_FACE_UNICAST_ETHERNET_TRANSPORT_HPP
27 #define NFD_DAEMON_FACE_UNICAST_ETHERNET_TRANSPORT_HPP
31 #include <ndn-cxx/util/scheduler.hpp>
45 const ethernet::Address& remoteEndpoint,
46 ndn::nfd::FacePersistency persistency,
47 time::nanoseconds idleTimeout);
58 scheduleClosureWhenIdle();
61 const time::nanoseconds m_idleTimeout;
62 ndn::scheduler::ScopedEventId m_closeIfIdleEvent;
Base class for Ethernet-based Transports.
A unicast Transport that uses raw Ethernet II frames.
void afterChangePersistency(ndn::nfd::FacePersistency oldPersistency) final
Invoked after the persistency has been changed.
bool canChangePersistencyToImpl(ndn::nfd::FacePersistency newPersistency) const final
Invoked by canChangePersistencyTo to perform the check.
UnicastEthernetTransport(const ndn::net::NetworkInterface &localEndpoint, const ethernet::Address &remoteEndpoint, ndn::nfd::FacePersistency persistency, time::nanoseconds idleTimeout)
Creates an Ethernet-based transport for unicast communication.