ndn-fch-discovery.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_NDN_FCH_DISCOVERY_HPP
27 #define NFD_TOOLS_NDN_AUTOCONFIG_NDN_FCH_DISCOVERY_HPP
28 
29 #include "base-dns.hpp"
30 
31 namespace ndn {
32 namespace tools {
33 namespace autoconfig {
34 
40 class NdnFchDiscovery : public Base
41 {
42 public:
47  NdnFchDiscovery(Face& face, KeyChain& keyChain,
48  const std::string& url,
49  const NextStageCallback& nextStageOnFailure);
50 
51  void
52  start() override;
53 
54 private:
55  std::string m_url;
56 };
57 
58 } // namespace autoconfig
59 } // namespace tools
60 } // namespace ndn
61 
62 #endif // NFD_TOOLS_NDN_AUTOCONFIG_NDN_FCH_DISCOVERY_HPP
Copyright (c) 2014-2016, Regents of the University of California, Arizona Board of Regents...
Definition: nfd.hpp:35
void start() override
Start the stage.
std::function< void(const std::string &)> NextStageCallback
Callback to be called when the stage fails.
Definition: base.hpp:64
Base class for discovery stages.
Definition: base.hpp:48
Discovery NDN hub using NDN-FCH protocol.
NdnFchDiscovery(Face &face, KeyChain &keyChain, const std::string &url, const NextStageCallback &nextStageOnFailure)
Create stage to discover NDN hub using NDN-FCH protocol.