26 #ifndef NFD_DAEMON_FACE_MULTICAST_UDP_TRANSPORT_HPP 27 #define NFD_DAEMON_FACE_MULTICAST_UDP_TRANSPORT_HPP 52 class Error :
public std::runtime_error
57 : std::runtime_error(what)
70 protocol::socket&& recvSocket,
71 protocol::socket&& sendSocket,
79 const
protocol::endpoint& multicastGroup,
80 const
boost::asio::ip::address& localAddress,
81 const shared_ptr<const
ndn::
net::NetworkInterface>& netif =
nullptr);
85 const
protocol::endpoint& localEndpoint,
86 const shared_ptr<const
ndn::
net::NetworkInterface>& netif =
nullptr,
87 bool enableLoopback = false);
104 #endif // NFD_DAEMON_FACE_MULTICAST_UDP_TRANSPORT_HPP Copyright (c) 2011-2015 Regents of the University of California.
static void openRxSocket(protocol::socket &sock, const protocol::endpoint &multicastGroup, const boost::asio::ip::address &localAddress, const shared_ptr< const ndn::net::NetworkInterface > &netif=nullptr)
ssize_t getSendQueueLength() final
Implements Transport for datagram-based protocols.
static EndpointId makeEndpointId(const typename protocol::endpoint &ep)
MulticastUdpTransport(const protocol::endpoint &multicastGroup, protocol::socket &&recvSocket, protocol::socket &&sendSocket, ndn::nfd::LinkType linkType)
Creates a UDP-based transport for multicast communication.
Copyright (c) 2011-2015 Regents of the University of California.
static void openTxSocket(protocol::socket &sock, const protocol::endpoint &localEndpoint, const shared_ptr< const ndn::net::NetworkInterface > &netif=nullptr, bool enableLoopback=false)
Error(const std::string &what)
A Transport that communicates on a UDP multicast group.
boost::asio::ip::udp protocol
NFD_LOG_MEMBER_DECL_SPECIALIZED((DatagramTransport< boost::asio::ip::udp, Multicast >))
uint64_t EndpointId
identifies an endpoint on the link