esp8266ndn
NDN Arduino library for ESP8266 and more
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions
ndnph::cli Namespace Reference

Namespaces

 detail
 

Functions

template<typename T , int bufferSize = 4096>
bool input (Region &region, T &target, std::istream &is=std::cin)
 Read and decode from input stream. More...
 
template<typename Encodable , int bufferSize = 65536>
void output (const Encodable &packet, std::ostream &os=std::cout)
 Write an Encodable to output stream. More...
 
KeyChainopenKeyChain ()
 Open KeyChain according to `NDNPH_KEYCHAIN` environ. More...
 
std::string checkKeyChainId (const std::string &id)
 Check KeyChain object ID has the proper format. More...
 
void loadKey (Region &region, const std::string &id, EcPrivateKey &pvt, EcPublicKey &pub)
 Load a key from the KeyChain. More...
 
Data loadCertificate (Region &region, const std::string &id)
 Load a certificate from the KeyChain. More...
 
Data inputCertificate (Region &region, EcPublicKey *pub=nullptr, std::istream &is=std::cin)
 Load a certificate in binary format from input stream. More...
 
FaceopenUplink ()
 Open uplink face. More...
 

Function Documentation

◆ checkKeyChainId()

std::string ndnph::cli::checkKeyChainId ( const std::string &  id)
inline

Check KeyChain object ID has the proper format.

◆ input()

template<typename T , int bufferSize = 4096>
bool ndnph::cli::input ( Region region,
T &  target,
std::istream &  is = std::cin 
)
inline

Read and decode from input stream.

◆ inputCertificate()

Data ndnph::cli::inputCertificate ( Region region,
EcPublicKey pub = nullptr,
std::istream &  is = std::cin 
)
inline

Load a certificate in binary format from input stream.

◆ loadCertificate()

Data ndnph::cli::loadCertificate ( Region region,
const std::string &  id 
)
inline

Load a certificate from the KeyChain.

◆ loadKey()

void ndnph::cli::loadKey ( Region region,
const std::string &  id,
EcPrivateKey pvt,
EcPublicKey pub 
)
inline

Load a key from the KeyChain.

◆ openKeyChain()

KeyChain& ndnph::cli::openKeyChain ( )
inline

Open KeyChain according to `NDNPH_KEYCHAIN` environ.

◆ openUplink()

Face& ndnph::cli::openUplink ( )
inline

Open uplink face.

◆ output()

template<typename Encodable , int bufferSize = 65536>
void ndnph::cli::output ( const Encodable &  packet,
std::ostream &  os = std::cout 
)
inline

Write an Encodable to output stream.