26 #ifndef NFD_DAEMON_FACE_TCP_FACTORY_HPP
27 #define NFD_DAEMON_FACE_TCP_FACTORY_HPP
41 static const std::string&
57 shared_ptr<TcpChannel>
70 std::vector<shared_ptr<const Channel>>
71 doGetChannels()
const final;
74 determineFaceScopeFromAddresses(
const boost::asio::ip::address& local,
75 const boost::asio::ip::address& remote)
const;
78 bool m_wantCongestionMarking =
false;
79 std::map<tcp::Endpoint, shared_ptr<TcpChannel>> m_channels;
Context for processing a config section in ProtocolFactory.
Represents a predicate to accept or reject an IP address.
Provides support for an underlying protocol.
ProtocolFactory(const CtorParams ¶ms)
Protocol factory for TCP over IPv4 and IPv6.
shared_ptr< TcpChannel > createChannel(const tcp::Endpoint &localEndpoint)
Create TCP-based channel using tcp::Endpoint.
static const std::string & getId() noexcept
#define NFD_PUBLIC_WITH_TESTS_ELSE_PRIVATE
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.
std::function< void(const shared_ptr< Face > &)> FaceCreatedCallback
Prototype for the callback that is invoked when a face is created (in response to an incoming connect...
boost::asio::ip::tcp::endpoint Endpoint
boost::optional< const ConfigSection & > OptionalConfigSection
An optional configuration file section.
Encapsulates a face creation request and all its parameters.