26 #ifndef NFD_DAEMON_FACE_TCP_FACTORY_HPP 27 #define NFD_DAEMON_FACE_TCP_FACTORY_HPP 40 static const std::string&
68 shared_ptr<TcpChannel>
71 std::vector<shared_ptr<const Channel>>
76 determineFaceScopeFromAddresses(
const boost::asio::ip::address& local,
77 const boost::asio::ip::address& remote)
const;
80 bool m_wantCongestionMarking =
false;
81 std::map<tcp::Endpoint, shared_ptr<TcpChannel>> m_channels;
90 #endif // NFD_DAEMON_FACE_TCP_FACTORY_HPP #define PUBLIC_WITH_TESTS_ELSE_PRIVATE
static const std::string & getId()
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...
Provides support for an underlying protocol.
protocol factory for TCP over IPv4 and IPv6
Copyright (c) 2011-2015 Regents of the University of California.
boost::asio::ip::tcp::endpoint Endpoint
void createFace(const CreateFaceRequest &req, const FaceCreatedCallback &onCreated, const FaceCreationFailedCallback &onFailure) override
Try to create a unicast face using the supplied parameters.
TcpFactory(const CtorParams ¶ms)
Parameters to ProtocolFactory constructor.
context for processing a config section in ProtocolFactory
std::vector< shared_ptr< const Channel > > getChannels() const override
Encapsulates a face creation request and all its parameters.
Represents a predicate to accept or reject an IP address.
void processConfig(OptionalConfigSection configSection, FaceSystem::ConfigContext &context) override
process face_system.tcp config section
shared_ptr< TcpChannel > createChannel(const tcp::Endpoint &localEndpoint)
Create TCP-based channel using tcp::Endpoint.