19 #ifndef UDP_ECHO_CLIENT_H 
   20 #define UDP_ECHO_CLIENT_H 
   22 #include "ns3/application.h" 
   23 #include "ns3/event-id.h" 
   25 #include "ns3/ipv4-address.h" 
   26 #include "ns3/traced-callback.h" 
  106   void SetFill (std::string fill);
 
  120   void SetFill (uint8_t fill, uint32_t dataSize);
 
  138   void SetFill (uint8_t *fill, uint32_t fillSize, uint32_t dataSize);
 
Simulation virtual time values and global simulation resolution. 
 
TracedCallback< Ptr< const Packet > > m_txTrace
Callbacks for tracing the packet Tx events. 
 
uint32_t m_dataSize
packet payload size (must be equal to m_size) 
 
Ptr< Socket > m_socket
Socket. 
 
virtual void DoDispose(void)
Destructor implementation. 
 
Forward calls to a chain of Callback. 
 
void HandleRead(Ptr< Socket > socket)
Handle a packet reception. 
 
virtual void StopApplication(void)
Application specific shutdown code. 
 
void SetRemote(Ipv4Address ip, uint16_t port)
set the remote address and port 
 
a polymophic address class 
 
void ScheduleTransmit(Time dt)
Schedule the next packet transmission. 
 
The base class for all ns3 applications. 
 
uint8_t * m_data
packet payload data 
 
virtual void StartApplication(void)
Application specific startup code. 
 
Every class exported by the ns3 library is enclosed in the ns3 namespace. 
 
uint32_t m_count
Maximum number of packets the application will send. 
 
static TypeId GetTypeId(void)
Get the type ID. 
 
Time m_interval
Packet inter-send time. 
 
void SetDataSize(uint32_t dataSize)
Set the data size of the packet (the number of bytes that are sent as data to the server)...
 
void Send(void)
Send a packet. 
 
Describes an IPv6 address. 
 
Ipv4 addresses are stored in host order in this class. 
 
EventId m_sendEvent
Event to send the next packet. 
 
An identifier for simulation events. 
 
uint32_t GetDataSize(void) const 
Get the number of data bytes that will be sent to the server. 
 
Address m_peerAddress
Remote peer address. 
 
uint32_t m_sent
Counter for sent packets. 
 
uint32_t m_size
Size of the sent packet. 
 
a unique identifier for an interface. 
 
uint16_t m_peerPort
Remote peer port. 
 
void SetFill(std::string fill)
Set the data fill of the packet (what is sent as data to the server) to the zero-terminated contents ...