A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
packet-socket-client.h File Reference
#include "packet-socket-address.h"
#include "ns3/application.h"
#include "ns3/event-id.h"
#include "ns3/ptr.h"
#include "ns3/traced-callback.h"
Include dependency graph for packet-socket-client.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.

Functions

 ns3::~PacketSocketClient () override
void ns3::DoDispose () override
uint8_t ns3::GetPriority () const
 Query the priority value of this socket.
static TypeId ns3::GetTypeId ()
 A simple client.
 ns3::PacketSocketClient ()
void ns3::Send ()
 Send a packet.
void ns3::SetPriority (uint8_t priority)
 Manually set the socket priority.
void ns3::SetRemote (PacketSocketAddress addr)
 set the remote address and protocol to be used
void ns3::StartApplication () override
void ns3::StopApplication () override

Variables

Time ns3::m_interval
 Packet inter-send time.
uint32_t ns3::m_maxPackets
 Maximum number of packets the application will send.
PacketSocketAddress ns3::m_peerAddress
 Remote peer address.
bool ns3::m_peerAddressSet
 Sanity check.
uint8_t ns3::m_priority
 Priority of the sent packets.
EventId ns3::m_sendEvent
 Event to send the next packet.
uint32_t ns3::m_sent
 Counter for sent packets.
uint32_t ns3::m_size
 Size of the sent packet.
Ptr< Socketns3::m_socket
 Socket.
TracedCallback< Ptr< const Packet >, const Address & > ns3::m_txTrace
 Traced Callback: sent packets, source address.