Base class for discovery stages. More...
#include <base.hpp>
Classes | |
class | Error |
Public Types | |
typedef std::function< void(const std::string &)> | NextStageCallback |
Callback to be called when the stage fails. More... | |
Public Member Functions | |
virtual void | start ()=0 |
Start the stage. More... | |
Protected Member Functions | |
Base (Face &face, KeyChain &keyChain, const NextStageCallback &nextStageOnFailure) | |
Initialize variables and create Controller instance. More... | |
void | connectToHub (const std::string &uri) |
Attempt to connect to local hub using the uri FaceUri. More... | |
Protected Attributes | |
Face & | m_face |
KeyChain & | m_keyChain |
ndn::nfd::Controller | m_controller |
NextStageCallback | m_nextStageOnFailure |
typedef std::function<void(const std::string&)> ndn::tools::autoconfig::Base::NextStageCallback |
|
protected |
|
protected |
Attempt to connect to local hub using the uri
FaceUri.
Base::Error | when failed to establish the tunnel |
|
pure virtual |
Start the stage.
Implemented in ndn::tools::autoconfig::GuessFromIdentityName, ndn::tools::autoconfig::GuessFromSearchDomains, ndn::tools::autoconfig::MulticastDiscovery, and ndn::tools::autoconfig::NdnFchDiscovery.
|
protected |
|
protected |
|
protected |