Examples/HttpAnalyzer/main.cpp
/**
 * Print the current rates. Should be called periodically during traffic capture
 */
Print the current rates. Should be called periodically during traffic capture
Print the current rates . Should be called periodically during traffic capture
void printCurrentRates(HttpStatsCollector& collector)
{
	printStatsHeadline("Current HTTP rates");
	PRINT_STAT_LINE("Rate of HTTP packets", collector.getGeneralStats().httpPacketRate.currentRate, "Packets/sec");
	PRINT_STAT_LINE("Rate of HTTP flows", collector.getGeneralStats().httpFlowRate.currentRate, "Flows/sec");
	PRINT_STAT_LINE("Rate of HTTP transactions", collector.getGeneralStats().httpTransactionsRate.currentRate, "Transactions/sec");
	PRINT_STAT_LINE("Rate of HTTP data", collector.getGeneralStats().httpTrafficRate.currentRate, "Bytes/sec");
	PRINT_STAT_LINE("Rate of HTTP requests", collector.getRequestStats().messageRate.currentRate, "Requests/sec");
	PRINT_STAT_LINE("Rate of HTTP responses", collector.getResponseStats().messageRate.currentRate, "Responses/sec");
}
void printCurrentRates ( HttpStatsCollector & collector ) { printStatsHeadline ( " " ) ; PRINT_STAT_LINE ( " " , collector . getGeneralStats ( ) . httpPacketRate . currentRate , " " ) ; PRINT_STAT_LINE ( " " , collector . getGeneralStats ( ) . httpFlowRate . currentRate , " " ) ; PRINT_STAT_LINE ( " " , collector . getGeneralStats ( ) . httpTransactionsRate . currentRate , " " ) ; PRINT_STAT_LINE ( " " , collector . getGeneralStats ( ) . httpTrafficRate . currentRate , " " ) ; PRINT_STAT_LINE ( " " , collector . getRequestStats ( ) . messageRate . currentRate , " " ) ; PRINT_STAT_LINE ( " " , collector . getResponseStats ( ) . messageRate . currentRate , " " ) ; }
Print the current rates.
Print the current rates .