command-interest-generator.hpp
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
22 #ifndef NDN_NFD_COMMAND_INTEREST_GENERATOR_HPP
23 #define NDN_NFD_COMMAND_INTEREST_GENERATOR_HPP
24 
25 #include <ndn-cpp/interest.hpp>
26 
27 namespace ndn {
28 
29 class KeyChain;
30 
36 public:
42 
56  void
57  generate
58  (Interest& interest, KeyChain& keyChain, const Name& certificateName,
60 
61 private:
62  MillisecondsSince1970 lastTimestamp_;
63 };
64 
65 }
66 
67 #endif
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
static WireFormat * getDefaultWireFormat()
Return the default WireFormat used by default encoding and decoding methods which was set with setDef...
Definition: wire-format.cpp:34
Definition: wire-format.hpp:39
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