26 #ifndef NFD_DAEMON_FACE_TCP_FACTORY_HPP 27 #define NFD_DAEMON_FACE_TCP_FACTORY_HPP 40 static const std::string&
56 shared_ptr<TcpChannel>
71 std::vector<shared_ptr<const Channel>>
72 doGetChannels()
const override;
75 determineFaceScopeFromAddresses(
const boost::asio::ip::address& local,
76 const boost::asio::ip::address& remote)
const;
79 bool m_wantCongestionMarking =
false;
80 std::map<tcp::Endpoint, shared_ptr<TcpChannel>> m_channels;
89 #endif // NFD_DAEMON_FACE_TCP_FACTORY_HPP shared_ptr< TcpChannel > createChannel(const tcp::Endpoint &localEndpoint)
Create TCP-based channel using tcp::Endpoint.
Represents a predicate to accept or reject an IP address.
Protocol factory for TCP over IPv4 and IPv6.
ProtocolFactory(const CtorParams ¶ms)
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
context for processing a config section in ProtocolFactory
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
boost::asio::ip::tcp::endpoint Endpoint
static const std::string & getId() noexcept
Provides support for an underlying protocol.
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE
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...
Encapsulates a face creation request and all its parameters.