26 #ifndef NFD_DAEMON_FACE_UDP_FACTORY_HPP 27 #define NFD_DAEMON_FACE_UDP_FACTORY_HPP 43 using ProtocolFactory::Error::Error;
46 static const std::string&
69 time::nanoseconds idleTimeout);
95 const
boost::asio::ip::address& localAddress,
96 const udp::
Endpoint& multicastEndpoint);
110 std::vector<shared_ptr<const
Channel>>
111 doGetChannels() const override;
116 std::vector<shared_ptr<
Face>>
117 applyMcastConfigToNetif(const shared_ptr<const
ndn::
net::NetworkInterface>& netif);
122 applyMcastConfig(const
FaceSystem::ConfigContext& context);
125 bool m_wantCongestionMarking = false;
128 struct MulticastConfig
130 bool isEnabled =
false;
136 MulticastConfig m_mcastConfig;
137 std::map<udp::Endpoint, shared_ptr<Face>> m_mcastFaces;
144 std::map<int, NetifConns> m_netifConns;
150 #endif // NFD_DAEMON_FACE_UDP_FACTORY_HPP shared_ptr< Face > createMulticastFace(const shared_ptr< const ndn::net::NetworkInterface > &netif, const boost::asio::ip::address &localAddress, const udp::Endpoint &multicastEndpoint)
Create a multicast UDP face.
Copyright (c) 2011-2015 Regents of the University of California.
represent a channel that communicates on a local endpoint
generalization of a network interface
entry point of the face system
std::function< void(uint32_t status, const std::string &reason)> FaceCreationFailedCallback
Prototype for the callback that is invoked when a face fails to be created.
boost::optional< const ConfigSection & > OptionalConfigSection
an optional config file section
std::function< void(const shared_ptr< Face > &face)> FaceCreatedCallback
Prototype for the callback that is invoked when a face is created (in response to an incoming connect...
Protocol factory for UDP over IPv4 and IPv6.
Endpoint getDefaultMulticastGroup()
Represents a predicate to accept or reject a ndn::net::NetworkInterface.
Provides support for an underlying protocol.
Copyright (c) 2011-2015 Regents of the University of California.
boost::asio::ip::tcp::endpoint Endpoint
Disconnects a Connection automatically upon destruction.
shared_ptr< UdpChannel > createChannel(const udp::Endpoint &localEndpoint, time::nanoseconds idleTimeout)
Create UDP-based channel using udp::Endpoint.
Parameters to ProtocolFactory constructor.
Base class for all exceptions thrown by ProtocolFactory subclasses.
boost::asio::ip::udp::endpoint Endpoint
static const std::string & getId() noexcept
Encapsulates a face creation request and all its parameters.
Endpoint getDefaultMulticastGroupV6()
Class implementing UDP-based channel to create faces.