A Discrete-Event Network Simulator
API
tcp-large-transfer.cc File Reference
#include <iostream>
#include <fstream>
#include <string>
#include "ns3/core-module.h"
#include "ns3/applications-module.h"
#include "ns3/network-module.h"
#include "ns3/internet-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/ipv4-global-routing-helper.h"
+ Include dependency graph for tcp-large-transfer.cc:

Go to the source code of this file.

Functions

static void CwndTracer (uint32_t oldval, uint32_t newval)
 
void StartFlow (Ptr< Socket >, Ipv4Address, uint16_t)
 
void WriteUntilBufferFull (Ptr< Socket >, uint32_t)
 

Variables

static uint32_t currentTxBytes = 0
 
uint8_t data [writeSize]
 
static const uint32_t totalTxBytes = 2000000
 
static const uint32_t writeSize = 1040
 

Function Documentation

static void CwndTracer ( uint32_t  oldval,
uint32_t  newval 
)
static

Definition at line 64 of file tcp-large-transfer.cc.

References NS_LOG_INFO.

void StartFlow ( Ptr< Socket localSocket,
Ipv4Address  servAddress,
uint16_t  servPort 
)
void WriteUntilBufferFull ( Ptr< Socket localSocket,
uint32_t  txSpace 
)

Definition at line 198 of file tcp-large-transfer.cc.

References ns3::Socket::Close(), currentTxBytes, data, ns3::Socket::GetTxAvailable(), min, ns3::Socket::Send(), totalTxBytes, and writeSize.

Referenced by StartFlow().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

uint32_t currentTxBytes = 0
static

Definition at line 49 of file tcp-large-transfer.cc.

Referenced by WriteUntilBufferFull().

uint8_t data[writeSize]

Definition at line 53 of file tcp-large-transfer.cc.

Referenced by WriteUntilBufferFull().

const uint32_t totalTxBytes = 2000000
static

Definition at line 48 of file tcp-large-transfer.cc.

Referenced by WriteUntilBufferFull().

const uint32_t writeSize = 1040
static

Definition at line 52 of file tcp-large-transfer.cc.

Referenced by WriteUntilBufferFull().