guess-from-identity-name.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26 #ifndef NFD_TOOLS_NDN_AUTOCONFIG_GUESS_FROM_IDENTITY_NAME_HPP
27 #define NFD_TOOLS_NDN_AUTOCONFIG_GUESS_FROM_IDENTITY_NAME_HPP
28 
29 #include "base-dns.hpp"
30 
31 namespace ndn {
32 namespace tools {
33 namespace autoconfig {
34 
57 {
58 public:
63  GuessFromIdentityName(Face& face, KeyChain& keyChain,
64  const NextStageCallback& nextStageOnFailure);
65 
66  virtual void
67  start() override;
68 };
69 
70 } // namespace autoconfig
71 } // namespace tools
72 } // namespace ndn
73 
74 #endif // NFD_TOOLS_NDN_AUTOCONFIG_GUESSING_FROM_IDENTITY_NAME_HPP
Copyright (c) 2014-2016, Regents of the University of California, Arizona Board of Regents...
Definition: nfd.hpp:35
virtual void start() override
Start the stage.
std::function< void(const std::string &)> NextStageCallback
Callback to be called when the stage fails.
Definition: base.hpp:61
Base class for stages that use DNS-based guessing.
Definition: base-dns.hpp:38
GuessFromIdentityName(Face &face, KeyChain &keyChain, const NextStageCallback &nextStageOnFailure)
Create stage to guess home router based on the default identity name.
Guessing home router based on the default identity name.