#include <flow-probe.h>
Classes | |
struct | FlowStats |
Public Types | |
typedef std::map< FlowId, FlowStats > | Stats |
Public Member Functions | |
void | AddPacketStats (FlowId flowId, uint32_t packetSize, Time delayFromFirstProbe) |
void | AddPacketDropStats (FlowId flowId, uint32_t packetSize, uint32_t reasonCode) |
Stats | GetStats () const |
void | SerializeToXmlStream (std::ostream &os, int indent, uint32_t index) const |
Protected Member Functions | |
FlowProbe (Ptr< FlowMonitor > flowMonitor) | |
Protected Attributes | |
Ptr< FlowMonitor > | m_flowMonitor |
Stats | m_stats |
The FlowProbe class is responsible for listening for packet events in a specific point of the simulated space, report those events to the global FlowMonitor, and collect its own flow statistics regarding only the packets that pass through that probe.
Stats ns3::FlowProbe::GetStats | ( | ) | const |
Get the partial flow statistics stored in this probe. With this information you can, for example, find out what is the delay from the first probe to this one.