26 #ifndef NFD_DAEMON_FACE_TCP_FACTORY_HPP
27 #define NFD_DAEMON_FACE_TCP_FACTORY_HPP
40 static const std::string&
51 ndn::nfd::FacePersistency persistency,
52 bool wantLocalFieldsEnabled,
71 shared_ptr<TcpChannel>
82 shared_ptr<TcpChannel>
83 createChannel(
const std::string& localIp,
const std::string& localPort);
85 std::vector<shared_ptr<const Channel>>
93 prohibitAllIpv4Endpoints(uint16_t port);
96 prohibitAllIpv6Endpoints(uint16_t port);
105 shared_ptr<TcpChannel>
109 std::map<tcp::Endpoint, shared_ptr<TcpChannel>> m_channels;
112 std::set<tcp::Endpoint> m_prohibitedEndpoints;
118 #endif // NFD_DAEMON_FACE_TCP_FACTORY_HPP
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
std::vector< shared_ptr< const Channel > > getChannels() const override
void createFace(const FaceUri &uri, ndn::nfd::FacePersistency persistency, bool wantLocalFieldsEnabled, const FaceCreatedCallback &onCreated, const FaceCreationFailedCallback &onFailure) override
Try to create Face using the supplied FaceUri.
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 the face fails to be created.
provide support for an underlying protocol
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE
function< void(const shared_ptr< Face > &newFace)> FaceCreatedCallback
Prototype for the callback that is invoked when the face is created (as a response to incoming connec...