ndn::tools::autoconfig Namespace Reference

Classes

class  DnsSrvError
 
class  GuessFromIdentityName
 Guessing home router based on the default identity name. More...
 
class  GuessFromSearchDomains
 Guessing home router based on DNS query with default suffix. More...
 
class  MulticastDiscovery
 multicast discovery stage More...
 
class  NdnFchDiscovery
 Discovery NDN hub using NDN-FCH protocol. More...
 
struct  Options
 
class  Procedure
 
class  Stage
 a discovery stage More...
 

Functions

const Name HUB_DISCOVERY_PREFIX ("/localhop/ndn-autoconf/hub")
 
const uint64_t HUB_DISCOVERY_ROUTE_COST (1)
 
static int main (int argc, char **argv)
 
static std::string parseSrvRr (const QueryAnswer &queryAnswer, int answerSize)
 Parse SRV record. More...
 
std::string querySrvRr (const std::string &fqdn)
 Send DNS SRV request for fqdn. More...
 
std::string querySrvRrSearch ()
 Send DNS SRV request using search domain list. More...
 
static void runDaemon (Procedure &proc)
 
static void usage (std::ostream &os, const po::options_description &opts, const char *programName)
 

Variables

const time::nanoseconds DAEMON_INITIAL_DELAY = 100_ms
 
const time::nanoseconds DAEMON_UNCONDITIONAL_INTERVAL = 1_h
 
const time::nanoseconds FACEURI_CANONIZE_TIMEOUT = 4_s
 
const time::milliseconds HUB_DISCOVERY_INTEREST_LIFETIME = 4_s
 
const time::milliseconds HUB_DISCOVERY_ROUTE_EXPIRATION = 30_s
 
const std::vector< Name > HUB_PREFIXES {"/", "/localhop/nfd"}
 
const uint64_t HUB_ROUTE_COST = 100
 
const nfd::RouteOrigin HUB_ROUTE_ORIGIN = nfd::ROUTE_ORIGIN_AUTOCONF
 
const time::nanoseconds NETMON_DAMPEN_PERIOD = 5_s
 

Function Documentation

const Name ndn::tools::autoconfig::HUB_DISCOVERY_PREFIX ( "/localhop/ndn-autoconf/hub"  )
const uint64_t ndn::tools::autoconfig::HUB_DISCOVERY_ROUTE_COST ( )
static int ndn::tools::autoconfig::main ( int  argc,
char **  argv 
)
static

Definition at line 108 of file main.cpp.

static std::string ndn::tools::autoconfig::parseSrvRr ( const QueryAnswer &  queryAnswer,
int  answerSize 
)
static

Parse SRV record.

Returns
FaceUri of the hub from the SRV record
Exceptions
DnsSrvErrorif SRV record cannot be parsed

Definition at line 58 of file dns-srv.cpp.

std::string ndn::tools::autoconfig::querySrvRr ( const std::string &  fqdn)

Send DNS SRV request for fqdn.

Parameters
fqdna fully qualified domain name
Returns
FaceUri of the hub from the requested SRV record
Exceptions
DnsSrvErrorquery returns nothing or SRV record cannot be parsed

Definition at line 116 of file dns-srv.cpp.

std::string ndn::tools::autoconfig::querySrvRrSearch ( )

Send DNS SRV request using search domain list.

Returns
FaceUri of the hub from the requested SRV record
Exceptions
DnsSrvErrorif query returns nothing or SRV record cannot be parsed

Definition at line 143 of file dns-srv.cpp.

static void ndn::tools::autoconfig::runDaemon ( Procedure proc)
static

Definition at line 69 of file main.cpp.

static void ndn::tools::autoconfig::usage ( std::ostream &  os,
const po::options_description &  opts,
const char *  programName 
)
static

Definition at line 59 of file main.cpp.

Variable Documentation

const time::nanoseconds ndn::tools::autoconfig::DAEMON_INITIAL_DELAY = 100_ms

Definition at line 54 of file main.cpp.

const time::nanoseconds ndn::tools::autoconfig::DAEMON_UNCONDITIONAL_INTERVAL = 1_h

Definition at line 55 of file main.cpp.

const time::nanoseconds ndn::tools::autoconfig::FACEURI_CANONIZE_TIMEOUT = 4_s

Definition at line 39 of file procedure.cpp.

const time::milliseconds ndn::tools::autoconfig::HUB_DISCOVERY_INTEREST_LIFETIME = 4_s

Definition at line 42 of file multicast-discovery.cpp.

const time::milliseconds ndn::tools::autoconfig::HUB_DISCOVERY_ROUTE_EXPIRATION = 30_s

Definition at line 41 of file multicast-discovery.cpp.

const std::vector<Name> ndn::tools::autoconfig::HUB_PREFIXES {"/", "/localhop/nfd"}

Definition at line 40 of file procedure.cpp.

const uint64_t ndn::tools::autoconfig::HUB_ROUTE_COST = 100

Definition at line 42 of file procedure.cpp.

const nfd::RouteOrigin ndn::tools::autoconfig::HUB_ROUTE_ORIGIN = nfd::ROUTE_ORIGIN_AUTOCONF

Definition at line 41 of file procedure.cpp.

const time::nanoseconds ndn::tools::autoconfig::NETMON_DAMPEN_PERIOD = 5_s

Definition at line 56 of file main.cpp.