29 #include <ndn-cxx/security/pib/identity.hpp> 30 #include <ndn-cxx/security/pib/pib.hpp> 36 namespace autoconfig {
39 : m_keyChain(keyChain)
44 GuessFromIdentityName::doStart()
46 std::cerr <<
"Trying default identity name..." << std::endl;
48 Name identity = m_keyChain.getPib().getDefaultIdentity().getName();
50 std::ostringstream serverName;
51 for (
auto i = identity.rbegin(); i != identity.rend(); ++i) {
52 serverName << i->toUri() <<
".";
54 serverName <<
"_homehub._autoconf.named-data.net";
57 std::string hubUri =
querySrvRr(serverName.str());
Copyright (c) 2014-2017, Regents of the University of California, Arizona Board of Regents...
provide synchronous DNS SRV record querying