23 #ifndef NDN_COMMAND_INTEREST_PREPARER_HPP
24 #define NDN_COMMAND_INTEREST_PREPARER_HPP
26 #include "../interest.hpp"
67 nowOffsetMilliseconds_ = nowOffsetMilliseconds;
double Milliseconds
A time interval represented as the number of milliseconds.
Definition: common.hpp:114
A CommandInterestPreparer keeps track of a timestamp and prepares a command interest by adding a time...
Definition: command-interest-preparer.hpp:39
void setNowOffsetMilliseconds_(Milliseconds nowOffsetMilliseconds)
Set the offset for when prepareCommandInterestName() gets the current time, which should only be used...
Definition: command-interest-preparer.hpp:65
An Interest holds a Name and other fields for an interest.
Definition: interest.hpp:43
double MillisecondsSince1970
The calendar time represented as the number of milliseconds since 1/1/1970.
Definition: common.hpp:119
CommandInterestPreparer()
Create a CommandInterestPreparer and initialize the timestamp to now.
Definition: command-interest-preparer.cpp:33
void prepareCommandInterestName(Interest &interest, WireFormat &wireFormat=*WireFormat::getDefaultWireFormat())
Append a timestamp component and a random nonce component to interest's name.
Definition: command-interest-preparer.cpp:40