44 class Error :
public std::runtime_error
47 using std::runtime_error::runtime_error;
58 boost::asio::ip::udp::socket&& recvSocket,
59 boost::asio::ip::udp::socket&& sendSocket,
60 ndn::nfd::LinkType linkType);
70 const boost::asio::ip::udp::endpoint& multicastGroup,
71 const boost::asio::ip::address& localAddress = {},
72 const ndn::net::NetworkInterface* netif =
nullptr);
79 const boost::asio::ip::udp::endpoint& localEndpoint,
80 const ndn::net::NetworkInterface* netif =
nullptr,
81 bool enableLoopback =
false);
85 doSend(
const Block& packet)
final;
91 boost::asio::ip::udp::endpoint m_multicastGroup;
92 boost::asio::ip::udp::socket m_sendSocket;
static void openRxSocket(boost::asio::ip::udp::socket &sock, const boost::asio::ip::udp::endpoint &multicastGroup, const boost::asio::ip::address &localAddress={}, const ndn::net::NetworkInterface *netif=nullptr)
Opens and configures the receive-side socket.
static void openTxSocket(boost::asio::ip::udp::socket &sock, const boost::asio::ip::udp::endpoint &localEndpoint, const ndn::net::NetworkInterface *netif=nullptr, bool enableLoopback=false)
Opens and configures the transmit-side socket.