#include "ns3/applications-module.h"
#include "ns3/core-module.h"
#include "ns3/internet-module.h"
#include "ns3/ipv4-global-routing-helper.h"
#include "ns3/network-module.h"
#include "ns3/point-to-point-module.h"
#include <fstream>
#include <iostream>
#include <string>
Go to the source code of this file.
Functions | |
static void | CwndTracer (uint32_t oldval, uint32_t newval) |
Congestion window tracker function. | |
void | StartFlow (Ptr< Socket > localSocket, Ipv4Address servAddress, uint16_t servPort) |
Start a flow. | |
void | WriteUntilBufferFull (Ptr< Socket > localSocket, uint32_t txSpace) |
Write to the buffer, filling it. | |
Variables | |
static uint32_t | currentTxBytes = 0 |
The actual number of sent bytes. | |
uint8_t | data [writeSize] |
Data to be written. | |
static const uint32_t | totalTxBytes = 2000000 |
The number of bytes to send in this simulation. | |
static const uint32_t | writeSize = 1040 |
Write size. | |
Congestion window tracker function.
oldval | Old value. |
newval | New value. |
Definition at line 76 of file tcp-large-transfer.cc.
References NS_LOG_INFO.
void StartFlow | ( | Ptr< Socket > | localSocket, |
Ipv4Address | servAddress, | ||
uint16_t | servPort ) |
Start a flow.
localSocket | The local (sending) socket. |
servAddress | The server address. |
servPort | The server port. |
Definition at line 199 of file tcp-large-transfer.cc.
References ns3::MakeCallback(), ns3::Simulator::Now(), NS_LOG_LOGIC, and WriteUntilBufferFull().
Write to the buffer, filling it.
localSocket | The socket. |
txSpace | The number of bytes to write. |
Definition at line 211 of file tcp-large-transfer.cc.
References currentTxBytes, data, totalTxBytes, and writeSize.
Referenced by StartFlow().
|
static |
The actual number of sent bytes.
Definition at line 38 of file tcp-large-transfer.cc.
Referenced by WriteUntilBufferFull().
uint8_t data[writeSize] |
Data to be written.
Definition at line 45 of file tcp-large-transfer.cc.
Referenced by WriteUntilBufferFull().
|
static |
The number of bytes to send in this simulation.
Definition at line 36 of file tcp-large-transfer.cc.
Referenced by WriteUntilBufferFull().
|
static |
Write size.
Definition at line 43 of file tcp-large-transfer.cc.
Referenced by WriteUntilBufferFull().