Base class for stages that use DNS-based guessing. More...
#include <base-dns.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 | |
BaseDns (Face &face, KeyChain &keyChain, const NextStageCallback &nextStageOnFailure) | |
std::string | querySrvRr (const std::string &fqdn) |
Send DNS SRV request for a fqdn fully qualified domain name. More... | |
std::string | querySrvRrSearch () |
Send DNS SRV request using search domain list. 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 |
Base class for stages that use DNS-based guessing.
Definition at line 38 of file base-dns.hpp.
|
inherited |
|
protected |
Definition at line 47 of file base-dns.cpp.
|
protectedinherited |
Attempt to connect to local hub using the uri
FaceUri.
Base::Error | when failed to establish the tunnel |
|
protected |
Send DNS SRV request for a fqdn
fully qualified domain name.
Error | if query returns nothing or SRV record cannot be parsed |
Definition at line 53 of file base-dns.cpp.
|
protected |
Send DNS SRV request using search domain list.
Error | if query returns nothing or SRV record cannot be parsed |
Definition at line 80 of file base-dns.cpp.
|
pure virtualinherited |
Start the stage.
Implemented in ndn::tools::autoconfig::GuessFromIdentityName, ndn::tools::autoconfig::GuessFromSearchDomains, ndn::tools::autoconfig::MulticastDiscovery, and ndn::tools::autoconfig::NdnFchDiscovery.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |