32 #include <netinet/in.h>     33 #include <sys/socket.h>     40                                                "UnicastUdpTransport");
    44                                          time::nanoseconds idleTimeout)
    46   , m_idleTimeout(idleTimeout)
    70   const int value = IP_PMTUDISC_DONT;
    71   if (::setsockopt(
m_socket.native_handle(), IPPROTO_IP,
    73     NFD_LOG_FACE_WARN(
"Failed to disable path MTU discovery: " << std::strerror(errno));
    78       m_idleTimeout > time::nanoseconds::zero()) {
    79     scheduleClosureWhenIdle();
    93       m_idleTimeout > time::nanoseconds::zero()) {
    94     scheduleClosureWhenIdle();
    97     m_closeIfIdleEvent.
cancel();
   103 UnicastUdpTransport::scheduleClosureWhenIdle()
   112       scheduleClosureWhenIdle();
 void setPersistency(ndn::nfd::FacePersistency newPersistency)
changes face persistency setting 
 
void cancel()
cancels the event manually 
 
void setExpirationTime(const time::steady_clock::TimePoint &expirationTime)
 
#define NFD_LOG_INCLASS_TEMPLATE_SPECIALIZATION_DEFINE(cls, specialization, name)
 
bool canChangePersistencyToImpl(ndn::nfd::FacePersistency newPersistency) const final
invoked by canChangePersistencyTo to perform the check 
 
void setRemoteUri(const FaceUri &uri)
 
static time_point now() noexcept
 
protocol::socket m_socket
 
void close()
request the transport to be closed 
 
void setLinkType(ndn::nfd::LinkType linkType)
 
Implements Transport for datagram-based protocols. 
 
ssize_t computeMtu(const Endpoint &localEndpoint)
computes maximum payload size in a UDP packet 
 
UnicastUdpTransport(protocol::socket &&socket, ndn::nfd::FacePersistency persistency, time::nanoseconds idleTimeout)
 
void setScope(ndn::nfd::FaceScope scope)
 
#define NFD_LOG_FACE_INFO(msg)
Log a message at INFO level. 
 
Copyright (c) 2011-2015 Regents of the University of California. 
 
void resetRecentlyReceived()
 
void setLocalUri(const FaceUri &uri)
 
represents the underlying protocol and address used by a Face 
 
void afterChangePersistency(ndn::nfd::FacePersistency oldPersistency) final
invoked after the persistency has been changed 
 
bool hasRecentlyReceived() const
 
EventId schedule(time::nanoseconds after, const EventCallback &event)
schedule an event 
 
Catch-all error for socket component errors that don't fit in other categories. 
 
boost::asio::ip::udp protocol
 
#define NFD_LOG_FACE_WARN(msg)
Log a message at WARN level. 
 
ndn::nfd::FacePersistency getPersistency() const