|
typedef TracedCallback< Ptr< const Packet > > | TxTracedCallback |
| Traced Callback: sent packets.
|
|
|
int64_t | AssignStreams (int64_t stream) override |
|
Ptr< Socket > | GetSocket () const |
| Get the socket this application is attached to.
|
|
uint64_t | GetTotalBytes () const |
| Get the total number of bytes that have been sent during this object's lifetime.
|
|
uint64_t | GetTotalPackets () const |
| Get the total number of packets that have been sent during this object's lifetime.
|
|
bool | SendPacketBurst () |
| Send another packet burst, which can be e.g., a file, or a video frame.
|
|
void | SetPacketSize (uint32_t packetSize) |
| Sets the packet size.
|
|
void | SetProtocol (TypeId protocol) |
| Sets the protocol.
|
|
void | SetRemote (Address remote) |
| Sets the remote address.
|
|
Definition at line 38 of file traffic-generator.h.
◆ TxTracedCallback
◆ TrafficGenerator()
ns3::TrafficGenerator::TrafficGenerator |
( |
| ) |
|
◆ ~TrafficGenerator()
ns3::TrafficGenerator::~TrafficGenerator |
( |
| ) |
|
|
override |
◆ AssignStreams()
int64_t ns3::TrafficGenerator::AssignStreams |
( |
int64_t |
stream | ) |
|
|
override |
Assign a fixed random variable stream number to the random variables used by this model. Return the number of streams (possibly zero) that have been assigned.
- Parameters
-
stream | first stream index to use |
- Returns
- the number of stream indices assigned by this model
Definition at line 442 of file traffic-generator.cc.
◆ DoDispose()
void ns3::TrafficGenerator::DoDispose |
( |
| ) |
|
|
overrideprotected |
◆ DoInitialize()
void ns3::TrafficGenerator::DoInitialize |
( |
| ) |
|
|
overrideprotected |
◆ GetPacketBurstSizeInBytes()
uint32_t ns3::TrafficGenerator::GetPacketBurstSizeInBytes |
( |
| ) |
const |
|
protected |
◆ GetPacketBurstSizeInPackets()
uint32_t ns3::TrafficGenerator::GetPacketBurstSizeInPackets |
( |
| ) |
const |
|
protected |
◆ GetPeer()
Address ns3::TrafficGenerator::GetPeer |
( |
| ) |
const |
|
protected |
◆ GetSocket()
Ptr< Socket > ns3::TrafficGenerator::GetSocket |
( |
| ) |
const |
Get the socket this application is attached to.
- Returns
- pointer to associated socket
Definition at line 72 of file traffic-generator.cc.
◆ GetTgId()
uint16_t ns3::TrafficGenerator::GetTgId |
( |
| ) |
const |
|
protected |
◆ GetTotalBytes()
uint64_t ns3::TrafficGenerator::GetTotalBytes |
( |
| ) |
const |
Get the total number of bytes that have been sent during this object's lifetime.
return the total number of bytes that have been sent
Definition at line 58 of file traffic-generator.cc.
◆ GetTotalPackets()
uint64_t ns3::TrafficGenerator::GetTotalPackets |
( |
| ) |
const |
Get the total number of packets that have been sent during this object's lifetime.
return the total number of packets that have been sent
Definition at line 65 of file traffic-generator.cc.
◆ GetTypeId()
TypeId ns3::TrafficGenerator::GetTypeId |
( |
| ) |
|
|
static |
◆ SendPacketBurst()
bool ns3::TrafficGenerator::SendPacketBurst |
( |
| ) |
|
Send another packet burst, which can be e.g., a file, or a video frame.
return true if another packet burst was started; false if the request didn't succeed (possibly because another transfer is ongoing)
Definition at line 103 of file traffic-generator.cc.
◆ SetPacketBurstSizeInBytes()
void ns3::TrafficGenerator::SetPacketBurstSizeInBytes |
( |
uint32_t |
burstSize | ) |
|
|
protected |
◆ SetPacketBurstSizeInPackets()
void ns3::TrafficGenerator::SetPacketBurstSizeInPackets |
( |
uint32_t |
burstSize | ) |
|
|
protected |
◆ SetProtocol()
void ns3::TrafficGenerator::SetProtocol |
( |
TypeId |
protocol | ) |
|
◆ SetRemote()
void ns3::TrafficGenerator::SetRemote |
( |
Address |
remote | ) |
|
◆ StopApplication()
void ns3::TrafficGenerator::StopApplication |
( |
| ) |
|
|
overrideprotected |
◆ m_txTrace
The documentation for this class was generated from the following files: