#include <legacy-nfdc.hpp>
Classes | |
class | Error |
Public Member Functions | |
LegacyNfdc (Face &face, KeyChain &keyChain) | |
bool | dispatch (const std::string &cmd) |
void | fibAddNextHop () |
Adds a nexthop to a FIB entry. More... | |
void | fibRemoveNextHop () |
Removes a nexthop from an existing FIB entry. More... | |
void | ribRegisterPrefix () |
Registers name to the given faceId or faceUri. More... | |
void | ribUnregisterPrefix () |
Unregisters name from the given faceId/faceUri. More... | |
void | faceCreate () |
Creates new face. More... | |
void | faceDestroy () |
Destroys face. More... | |
void | strategyChoiceSet () |
Sets the strategy for a namespace. More... | |
void | strategyChoiceUnset () |
Unset the strategy for a namespace. More... | |
Public Attributes | |
std::vector< std::string > | m_commandLineArguments |
uint64_t | m_flags |
uint64_t | m_cost |
uint64_t | m_faceId |
uint64_t | m_origin |
time::milliseconds | m_expires |
std::string | m_name |
ndn::nfd::FacePersistency | m_facePersistency |
Static Public Attributes | |
static const time::milliseconds | DEFAULT_EXPIRATION_PERIOD = time::milliseconds::max() |
static const uint64_t | DEFAULT_COST = 0 |
Definition at line 36 of file legacy-nfdc.hpp.
nfd::tools::nfdc::LegacyNfdc::LegacyNfdc | ( | Face & | face, |
KeyChain & | keyChain | ||
) |
Definition at line 41 of file legacy-nfdc.cpp.
bool nfd::tools::nfdc::LegacyNfdc::dispatch | ( | const std::string & | cmd | ) |
Definition at line 53 of file legacy-nfdc.cpp.
void nfd::tools::nfdc::LegacyNfdc::faceCreate | ( | ) |
Creates new face.
This command allows creation of UDP unicast and TCP faces only
cmd format: uri
Definition at line 202 of file legacy-nfdc.cpp.
void nfd::tools::nfdc::LegacyNfdc::faceDestroy | ( | ) |
void nfd::tools::nfdc::LegacyNfdc::fibAddNextHop | ( | ) |
Adds a nexthop to a FIB entry.
If the FIB entry does not exist, it is inserted automatically
cmd format: [-c cost] name faceId|faceUri
Definition at line 102 of file legacy-nfdc.cpp.
void nfd::tools::nfdc::LegacyNfdc::fibRemoveNextHop | ( | ) |
Removes a nexthop from an existing FIB entry.
If the last nexthop record in a FIB entry is removed, the FIB entry is also deleted
cmd format: name faceId
Definition at line 123 of file legacy-nfdc.cpp.
void nfd::tools::nfdc::LegacyNfdc::ribRegisterPrefix | ( | ) |
Registers name to the given faceId or faceUri.
cmd format: [-I] [-C] [-c cost] name faceId|faceUri
Definition at line 143 of file legacy-nfdc.cpp.
void nfd::tools::nfdc::LegacyNfdc::ribUnregisterPrefix | ( | ) |
Unregisters name from the given faceId/faceUri.
cmd format: name faceId/faceUri
Definition at line 169 of file legacy-nfdc.cpp.
void nfd::tools::nfdc::LegacyNfdc::strategyChoiceSet | ( | ) |
Sets the strategy for a namespace.
cmd format: name strategy
Definition at line 247 of file legacy-nfdc.cpp.
void nfd::tools::nfdc::LegacyNfdc::strategyChoiceUnset | ( | ) |
Unset the strategy for a namespace.
cmd format: name strategy
Definition at line 263 of file legacy-nfdc.cpp.
|
static |
Definition at line 40 of file legacy-nfdc.hpp.
|
static |
Definition at line 39 of file legacy-nfdc.hpp.
std::vector<std::string> nfd::tools::nfdc::LegacyNfdc::m_commandLineArguments |
Definition at line 159 of file legacy-nfdc.hpp.
uint64_t nfd::tools::nfdc::LegacyNfdc::m_cost |
Definition at line 161 of file legacy-nfdc.hpp.
time::milliseconds nfd::tools::nfdc::LegacyNfdc::m_expires |
Definition at line 164 of file legacy-nfdc.hpp.
uint64_t nfd::tools::nfdc::LegacyNfdc::m_faceId |
Definition at line 162 of file legacy-nfdc.hpp.
ndn::nfd::FacePersistency nfd::tools::nfdc::LegacyNfdc::m_facePersistency |
Definition at line 166 of file legacy-nfdc.hpp.
uint64_t nfd::tools::nfdc::LegacyNfdc::m_flags |
Definition at line 160 of file legacy-nfdc.hpp.
std::string nfd::tools::nfdc::LegacyNfdc::m_name |
Definition at line 165 of file legacy-nfdc.hpp.
uint64_t nfd::tools::nfdc::LegacyNfdc::m_origin |
Definition at line 163 of file legacy-nfdc.hpp.