28#include "ns3/core-module.h"
29#include "ns3/network-module.h"
30#include "ns3/application.h"
32#include "ns3/stats-module.h"
158 void Print (std::ostream &os)
const;
uint32_t m_port
Listening port.
virtual void StopApplication(void)
Application specific shutdown code.
Ptr< Socket > m_socket
Receiving socket.
void SetDelayTracker(Ptr< TimeMinMaxAvgTotalCalculator > delay)
Set the delay tracker for received packets.
void Receive(Ptr< Socket > socket)
Receive a packet.
virtual void StartApplication(void)
Application specific startup code.
static TypeId GetTypeId(void)
Get the type ID.
Ptr< CounterCalculator<> > m_calc
Counter of the number of received packets.
void SetCounter(Ptr< CounterCalculator<> > calc)
Set the counter calculator for received packets.
Ptr< TimeMinMaxAvgTotalCalculator > m_delay
Delay calculator.
virtual void DoDispose(void)
Destructor implementation.
Ptr< Socket > m_socket
Sending socket.
void SendPacket()
Send a packet.
uint32_t m_count
Number of packets sent.
uint32_t m_destPort
Destination port.
Ptr< ConstantRandomVariable > m_interval
Rng for sending packets.
static TypeId GetTypeId(void)
Get the type ID.
Ipv4Address m_destAddr
Destination address.
virtual void StartApplication(void)
Application specific startup code.
EventId m_sendEvent
Send packet event.
uint32_t m_numPkts
Number of packets to send.
virtual void DoDispose(void)
Destructor implementation.
TracedCallback< Ptr< const Packet > > m_txTrace
Tx TracedCallback.
uint32_t m_pktSize
The packet size.
virtual void StopApplication(void)
Application specific shutdown code.
Timestamp tag - it carries when the packet has been sent.
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
void Print(std::ostream &os) const
static TypeId GetTypeId(void)
Get the type ID.
void SetTimestamp(Time time)
Set the timestamp.
virtual void Serialize(TagBuffer i) const
virtual uint32_t GetSerializedSize(void) const
virtual void Deserialize(TagBuffer i)
Time GetTimestamp(void) const
Get the timestamp.
Time m_timestamp
Timestamp.
The base class for all ns3 applications.
Template class CounterCalculator.
An identifier for simulation events.
Ipv4 addresses are stored in host order in this class.
tag a set of bytes in a packet
Simulation virtual time values and global simulation resolution.
Forward calls to a chain of Callback.
a unique identifier for an interface.
Every class exported by the ns3 library is enclosed in the ns3 namespace.