26 #ifndef NFD_DAEMON_FACE_TCP_FACTORY_HPP
27 #define NFD_DAEMON_FACE_TCP_FACTORY_HPP
52 shared_ptr<TcpChannel>
63 shared_ptr<TcpChannel>
64 createChannel(
const std::string& localIp,
const std::string& localPort);
69 ndn::nfd::FacePersistency persistency,
70 bool wantLocalFieldsEnabled,
74 virtual std::vector<shared_ptr<const Channel>>
82 prohibitAllIpv4Endpoints(uint16_t port);
85 prohibitAllIpv6Endpoints(uint16_t port);
94 shared_ptr<TcpChannel>
98 std::map<tcp::Endpoint, shared_ptr<TcpChannel>> m_channels;
101 std::set<tcp::Endpoint> m_prohibitedEndpoints;
106 #endif // NFD_DAEMON_FACE_TCP_FACTORY_HPP
virtual std::vector< shared_ptr< const Channel > > getChannels() const override
shared_ptr< TcpChannel > createChannel(const tcp::Endpoint &localEndpoint)
Create TCP-based channel using tcp::Endpoint.
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
virtual 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.
boost::asio::ip::tcp::endpoint Endpoint
function< void(uint32_t status, const std::string &reason)> FaceCreationFailedCallback
Prototype for the callback that is invoked when the face fails to be created.
#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...
Abstract base class for all protocol factories.