![]() |
5G-LENA nr-v4.0
The 5G/NR module for the ns-3 simulator
|
#include "traffic-generator-ftp-single.h"
Public Member Functions | |
int64_t | AssignStreams (int64_t stream) override |
void | SetFileSize (uint32_t fileSize) |
Set the file size to try to transfer. | |
void | SetPacketSize (uint32_t packetSize) |
Sets the packet size. | |
![]() | |
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. | |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Get the type ID. | |
![]() | |
static TypeId | GetTypeId () |
Get the type ID. | |
Protected Member Functions | |
void | DoDispose () override |
void | DoInitialize () override |
![]() | |
void | DoDispose () override |
void | DoInitialize () override |
uint32_t | GetPacketBurstSizeInBytes () const |
uint32_t | GetPacketBurstSizeInPackets () const |
Address | GetPeer () const |
uint16_t | GetTgId () const |
void | SetPacketBurstSizeInBytes (uint32_t burstSize) |
void | SetPacketBurstSizeInPackets (uint32_t burstSize) |
void | StopApplication () override |
Additional Inherited Members | |
![]() | |
typedef TracedCallback< Ptr< const Packet > > | TxTracedCallback |
Traced Callback: sent packets. | |
![]() | |
TxTracedCallback | m_txTrace |
File transfer application used to send a single file
Definition at line 19 of file traffic-generator-ftp-single.h.
ns3::TrafficGeneratorFtpSingle::TrafficGeneratorFtpSingle | ( | ) |
Definition at line 64 of file traffic-generator-ftp-single.cc.
|
override |
Definition at line 70 of file traffic-generator-ftp-single.cc.
|
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.
stream | first stream index to use |
Definition at line 119 of file traffic-generator-ftp-single.cc.
|
overrideprotected |
Definition at line 103 of file traffic-generator-ftp-single.cc.
|
overrideprotected |
Definition at line 111 of file traffic-generator-ftp-single.cc.
|
static |
Get the type ID.
Definition at line 29 of file traffic-generator-ftp-single.cc.
References SetFileSize(), SetPacketSize(), ns3::TrafficGenerator::SetProtocol(), and ns3::TrafficGenerator::SetRemote().
void ns3::TrafficGeneratorFtpSingle::SetFileSize | ( | uint32_t | fileSize | ) |
Set the file size to try to transfer.
fileSize | the size of a file to try to transfer |
Definition at line 82 of file traffic-generator-ftp-single.cc.
Referenced by GetTypeId().
void ns3::TrafficGeneratorFtpSingle::SetPacketSize | ( | uint32_t | packetSize | ) |
Sets the packet size.
Definition at line 76 of file traffic-generator-ftp-single.cc.
Referenced by GetTypeId().