21 #ifndef BULK_SEND_APPLICATION_H 22 #define BULK_SEND_APPLICATION_H 24 #include "ns3/address.h" 25 #include "ns3/application.h" 26 #include "ns3/event-id.h" 28 #include "ns3/traced-callback.h" 29 #include "ns3/seq-ts-size-header.h" Ptr< Socket > GetSocket(void) const
Get the socket this application is attached to.
void SendData(const Address &from, const Address &to)
Send data until the L4 transmission buffer is full.
virtual ~BulkSendApplication()
TracedCallback< Ptr< const Packet >, const Address &, const Address &, const SeqTsSizeHeader & > m_txTraceWithSeqTsSize
Callback for tracing the packet Tx events, includes source, destination, the packet sent...
bool m_enableSeqTsSizeHeader
Enable or disable the SeqTsSizeHeader.
Forward calls to a chain of Callback.
void ConnectionFailed(Ptr< Socket > socket)
Connection Failed (called by Socket through a callback)
virtual void DoDispose(void)
Destructor implementation.
a polymophic address class
virtual void StopApplication(void)
Application specific shutdown code.
The base class for all ns3 applications.
Send as much traffic as possible, trying to fill the bandwidth.
virtual void StartApplication(void)
Application specific startup code.
void DataSend(Ptr< Socket >, uint32_t)
Send more data as soon as some has been transmitted.
TypeId m_tid
The type of protocol to use.
uint64_t m_totBytes
Total bytes sent so far.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Address m_local
Local address to bind to.
Ptr< Socket > m_socket
Associated socket.
void ConnectionSucceeded(Ptr< Socket > socket)
Connection Succeeded (called by Socket through a callback)
void SetMaxBytes(uint64_t maxBytes)
Set the upper bound for the total number of bytes to send.
bool m_connected
True if connected.
Address m_peer
Peer address.
static TypeId GetTypeId(void)
Get the type ID.
uint32_t m_sendSize
Size of data to send each time.
uint64_t m_maxBytes
Limit total number of bytes sent.
Ptr< Packet > m_unsentPacket
Variable to cache unsent packet.
TracedCallback< Ptr< const Packet > > m_txTrace
Traced Callback: sent packets.
a unique identifier for an interface.