From 72e75a0b7ce700fb6a1b726b5bd99be7f96d43ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deronne?= Date: Sat, 11 May 2024 14:45:16 +0200 Subject: [PATCH] applications: Remove UdpTraceClient constructors with parameters that are set through attributes --- src/applications/model/udp-trace-client.cc | 16 ---------------- src/applications/model/udp-trace-client.h | 13 ------------- 2 files changed, 29 deletions(-) diff --git a/src/applications/model/udp-trace-client.cc b/src/applications/model/udp-trace-client.cc index 4b183447c..bd3f11a68 100644 --- a/src/applications/model/udp-trace-client.cc +++ b/src/applications/model/udp-trace-client.cc @@ -103,22 +103,6 @@ UdpTraceClient::UdpTraceClient() m_maxPacketSize = 1400; } -UdpTraceClient::UdpTraceClient(Ipv4Address ip, uint16_t port, char* traceFile) -{ - NS_LOG_FUNCTION(this); - m_sent = 0; - m_socket = nullptr; - m_sendEvent = EventId(); - m_peerAddress = ip; - m_peerPort = port; - m_currentEntry = 0; - m_maxPacketSize = 1400; - if (traceFile != nullptr) - { - SetTraceFile(traceFile); - } -} - UdpTraceClient::~UdpTraceClient() { NS_LOG_FUNCTION(this); diff --git a/src/applications/model/udp-trace-client.h b/src/applications/model/udp-trace-client.h index cf71797fc..306a69aca 100644 --- a/src/applications/model/udp-trace-client.h +++ b/src/applications/model/udp-trace-client.h @@ -59,19 +59,6 @@ class UdpTraceClient : public Application static TypeId GetTypeId(); UdpTraceClient(); - - /** - * \brief Creates a traceBasedStreamer application - * \param ip the destination ip address to which the stream will be sent - * \param port the destination udp port to which the stream will be sent - * \param traceFile a path to an MPEG4 trace file formatted as follows: - * FrameNo Frametype Time[ms] Length [byte] - * FrameNo Frametype Time[ms] Length [byte] - * ... - * - * - */ - UdpTraceClient(Ipv4Address ip, uint16_t port, char* traceFile); ~UdpTraceClient() override; /**