Discover NDN hub using NDN-FCH protocol.
More...
#include <tools/ndn-autoconfig/ndn-fch-discovery.hpp>
|
void | fail (const std::string &msg) |
|
void | provideHubFaceUri (const std::string &s) |
| Parse HUB FaceUri from string and declare success. More...
|
|
void | succeed (const FaceUri &hubFaceUri) |
|
◆ NdnFchDiscovery()
ndn::autoconfig::NdnFchDiscovery::NdnFchDiscovery |
( |
const std::string & |
url | ) |
|
|
explicit |
◆ fail()
void ndn::autoconfig::Stage::fail |
( |
const std::string & |
msg | ) |
|
|
protectedinherited |
◆ getName()
const std::string& ndn::autoconfig::NdnFchDiscovery::getName |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ provideHubFaceUri()
void ndn::autoconfig::Stage::provideHubFaceUri |
( |
const std::string & |
s | ) |
|
|
protectedinherited |
Parse HUB FaceUri from string and declare success.
Definition at line 43 of file stage.cpp.
◆ start()
void ndn::autoconfig::Stage::start |
( |
| ) |
|
|
inherited |
Start running this stage.
- Exceptions
-
Error | stage is already running |
Definition at line 31 of file stage.cpp.
◆ succeed()
void ndn::autoconfig::Stage::succeed |
( |
const FaceUri & |
hubFaceUri | ) |
|
|
protectedinherited |
◆ onFailure
signal::Signal<Stage, std::string> ndn::autoconfig::Stage::onFailure |
|
inherited |
Signal emitted when discovery fails.
Argument is error message.
Definition at line 92 of file stage.hpp.
◆ onSuccess
signal::Signal<Stage, FaceUri> ndn::autoconfig::Stage::onSuccess |
|
inherited |
Signal emitted when a HUB FaceUri is found.
Argument is HUB FaceUri, may not be canonical.
Definition at line 85 of file stage.hpp.