A Udp client. Sends UDP packet carrying sequence number and time stamp in their payloads. More...
#include <udp-client.h>
Public Member Functions | |
void | SetRemote (Ipv4Address ip, uint16_t port) |
set the remote address and port | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::UdpClient. | |
Protected Member Functions | |
virtual void | DoDispose (void) |
A Udp client. Sends UDP packet carrying sequence number and time stamp in their payloads.
virtual void ns3::UdpClient::DoDispose | ( | void | ) | [protected, virtual] |
This method is called by Object::Dispose or by the object's destructor, whichever comes first.
Subclasses are expected to implement their real destruction code in an overriden version of this method and chain up to their parent's implementation once they are done. i.e., for simplicity, the destructor of every subclass should be empty and its content should be moved to the associated DoDispose method.
It is safe to call GetObject from within this method.
Reimplemented from ns3::Application.
static TypeId ns3::UdpClient::GetTypeId | ( | void | ) | [static] |
This method returns the TypeId associated to ns3::UdpClient.
This object is accessible through the following paths with Config::Set and Config::Connect:
Attributes defined for this type:
Attributes defined in parent class ns3::Application:
No TraceSources defined for this type.
Reimplemented from ns3::Application.
void ns3::UdpClient::SetRemote | ( | Ipv4Address | ip, | |
uint16_t | port | |||
) |
set the remote address and port
ip | remote IP address | |
port | remote port |