Base class for stages that use DNS-based guessing.
More...
#include <base-dns.hpp>
Base class for stages that use DNS-based guessing.
Definition at line 38 of file base-dns.hpp.
Callback to be called when the stage fails.
Definition at line 61 of file base.hpp.
ndn::tools::autoconfig::BaseDns::BaseDns |
( |
Face & |
face, |
|
|
KeyChain & |
keyChain, |
|
|
const NextStageCallback & |
nextStageOnFailure |
|
) |
| |
|
protected |
void ndn::tools::autoconfig::Base::connectToHub |
( |
const std::string & |
uri | ) |
|
|
protectedinherited |
Attempt to connect to local hub using the uri
FaceUri.
- Exceptions
-
Definition at line 41 of file base.cpp.
std::string ndn::tools::autoconfig::BaseDns::querySrvRr |
( |
const std::string & |
fqdn | ) |
|
|
protected |
Send DNS SRV request for a fqdn
fully qualified domain name.
- Returns
- FaceUri of the hub from the requested SRV record
- Exceptions
-
Error | if query returns nothing or SRV record cannot be parsed |
Definition at line 53 of file base-dns.cpp.
std::string ndn::tools::autoconfig::BaseDns::querySrvRrSearch |
( |
| ) |
|
|
protected |
Send DNS SRV request using search domain list.
- Returns
- FaceUri of the hub from the requested SRV record
- Exceptions
-
Error | if query returns nothing or SRV record cannot be parsed |
Definition at line 80 of file base-dns.cpp.
virtual void ndn::tools::autoconfig::Base::start |
( |
| ) |
|
|
pure virtualinherited |
nfd::Controller ndn::tools::autoconfig::Base::m_controller |
|
protectedinherited |
Face& ndn::tools::autoconfig::Base::m_face |
|
protectedinherited |
KeyChain& ndn::tools::autoconfig::Base::m_keyChain |
|
protectedinherited |