22 #ifndef NDN_NFD_COMMAND_INTEREST_GENERATOR_HPP
23 #define NDN_NFD_COMMAND_INTEREST_GENERATOR_HPP
25 #include <ndn-cpp/interest.hpp>
Copyright (C) 2013-2016 Regents of the University of California.
Definition: common.hpp:35
KeyChain is the main class of the security library.
Definition: key-chain.hpp:45
A Name holds an array of Name::Component and represents an NDN name.
Definition: name.hpp:40
An Interest holds a Name and other fields for an interest.
Definition: interest.hpp:41
double MillisecondsSince1970
The calendar time represented as the number of milliseconds since 1/1/1970.
Definition: common.hpp:116
An CommandInterestGenerator keeps track of a timestamp and generates command interests according to t...
Definition: command-interest-generator.hpp:35
CommandInterestGenerator()
Create a new CommandInterestGenerator and initialize the timestamp to now.
Definition: command-interest-generator.cpp:33
void generate(Interest &interest, KeyChain &keyChain, const Name &certificateName, WireFormat &wireFormat=*WireFormat::getDefaultWireFormat())
Append a timestamp component and a random value component to interest's name.
Definition: command-interest-generator.cpp:40