All Instructions Updated - Ready For Use/Testing
diff --git a/ndn-traffic-server.cpp b/ndn-traffic-server.cpp
index 41527e0..38b3461 100644
--- a/ndn-traffic-server.cpp
+++ b/ndn-traffic-server.cpp
@@ -255,9 +255,16 @@
void
usage()
{
- std::cout << "\nUsage: " << programName_ << " Printing Usage"
- "\n\n";
+
+ std::cout << "\nUsage: " << programName_ << " [options] <Traffic_Configuration_File>\n"
+ "Respond to Interest as per provided Traffic Configuration File\n"
+ "Multiple Prefixes can be configured for handling.\n"
+ "Set environment variable NDN_TRAFFIC_LOGFOLDER for redirecting output to a log.\n"
+ " [-d interval] - set delay before responding to interest in milliseconds (minimum "
+ << getDefaultContentDelayTime() << " milliseconds)\n"
+ " [-h] - print help and exit\n\n";
exit(1);
+
}
int
@@ -419,6 +426,7 @@
std::string content, logLine;
content = "";
logLine = "";
+
Data data(interest.getName());
if (trafficPattern_[patternId].contentType >= 0)
data.setContentType(trafficPattern_[patternId].contentType);
@@ -437,6 +445,7 @@
logLine += ", LocalID="+toString(trafficPattern_[patternId].totalInterestReceived);
logLine += ", Name="+trafficPattern_[patternId].name;
logger_.log(logLine, true, false);
+ usleep(contentDelayTime_*1000);
face_.put(data);
}