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>>
75 std::map<tcp::Endpoint, shared_ptr<TcpChannel>> m_channels;
81 #endif // NFD_DAEMON_FACE_TCP_FACTORY_HPP void createFace(const CreateFaceParams ¶ms, const FaceCreatedCallback &onCreated, const FaceCreationFailedCallback &onFailure) override
Try to create face using the supplied parameters.
shared_ptr< TcpChannel > createChannel(const tcp::Endpoint &localEndpoint)
Create TCP-based channel using tcp::Endpoint.
static const std::string & getId()
protocol factory for TCP over IPv4 and IPv6
TcpFactory(const CtorParams ¶ms)
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
void processConfig(OptionalConfigSection configSection, FaceSystem::ConfigContext &context) override
process face_system.tcp config section
boost::optional< const ConfigSection & > OptionalConfigSection
an optional config file section
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::vector< shared_ptr< const Channel > > getChannels() const override
Provides support for an underlying protocol.
Parameters to ProtocolFactory constructor.
Parameters to ProtocolFactory::createFace.
function< void(const shared_ptr< Face > &newFace)> FaceCreatedCallback
Prototype for the callback that is invoked when a face is created (in response to an incoming connect...