109 void DoDispose()
override;
110 void DoInitialize()
override;
115 void SetPacketBurstSizeInBytes(uint32_t burstSize);
120 void SetPacketBurstSizeInPackets(uint32_t burstSize);
125 uint32_t GetPacketBurstSizeInBytes()
const;
130 uint32_t GetPacketBurstSizeInPackets()
const;
136 void StopApplication()
override;
140 uint16_t GetTgId()
const;
146 Address GetPeer()
const;
150 void StartApplication()
override;
156 void SendNextPacket();
161 void ConnectionSucceeded(Ptr<Socket> socket);
166 void ConnectionFailed(Ptr<Socket> socket);
171 void CloseSucceeded(Ptr<Socket> socket);
176 void CloseFailed(Ptr<Socket> socket);
180 void SendNextPacketIfConnected(Ptr<Socket>, uint32_t);
185 virtual void PacketBurstSent();
189 virtual void GenerateNextPacketBurstSize();
194 virtual uint32_t GetNextPacketSize()
const = 0;
200 virtual Time GetNextPacketTime()
const;
202 Ptr<Socket> m_socket;
204 bool m_connected{
false};
205 uint32_t m_currentBurstTotBytes{0};
207 uint32_t m_currentBurstTotPackets{0};
208 uint64_t m_totBytes{0};
209 uint64_t m_totPackets{0};
210 bool m_stopped{
false};
211 uint32_t m_packetBurstSizeInBytes{0};
212 uint32_t m_packetBurstSizeInPackets{0};
213 EventId m_eventIdSendNextPacket;
215 bool m_waitForNextPacketBurst{
219 static uint16_t m_tgIdCounter;