A Discrete-Event Network Simulator
API
Classes | Functions | Variables
tcp-test.cc File Reference
#include "ns3/test.h"
#include "ns3/socket-factory.h"
#include "ns3/tcp-socket-factory.h"
#include "ns3/simulator.h"
#include "ns3/simple-channel.h"
#include "ns3/simple-net-device.h"
#include "ns3/config.h"
#include "ns3/ipv4-static-routing.h"
#include "ns3/ipv4-list-routing.h"
#include "ns3/ipv6-static-routing.h"
#include "ns3/ipv6-list-routing.h"
#include "ns3/node.h"
#include "ns3/inet-socket-address.h"
#include "ns3/inet6-socket-address.h"
#include "ns3/uinteger.h"
#include "ns3/log.h"
#include "ns3/arp-l3-protocol.h"
#include "ns3/ipv4-l3-protocol.h"
#include "ns3/ipv6-l3-protocol.h"
#include "ns3/icmpv4-l4-protocol.h"
#include "ns3/icmpv6-l4-protocol.h"
#include "ns3/udp-l4-protocol.h"
#include "ns3/tcp-l4-protocol.h"
#include "ns3/traffic-control-layer.h"
#include <string>

Go to the source code of this file.

Classes

class  TcpTestCase
 TCP Test - send string data from client to server and back. More...
 
class  TcpTestSuite
 TCP TestSuite - send string data from client to server and back. More...
 

Functions

static std::string GetString (Ptr< Packet > p)
 
static std::string Name (std::string str, uint32_t totalStreamSize, uint32_t sourceWriteSize, uint32_t serverReadSize, uint32_t serverWriteSize, uint32_t sourceReadSize, bool useIpv6)
 

Variables

static TcpTestSuite g_tcpTestSuite
 Static variable for test initialization. More...
 

Function Documentation

◆ GetString()

static std::string GetString ( Ptr< Packet p)
inlinestatic

◆ Name()

static std::string Name ( std::string  str,
uint32_t  totalStreamSize,
uint32_t  sourceWriteSize,
uint32_t  serverReadSize,
uint32_t  serverWriteSize,
uint32_t  sourceReadSize,
bool  useIpv6 
)
static

Definition at line 166 of file tcp-test.cc.

Variable Documentation

◆ g_tcpTestSuite

TcpTestSuite g_tcpTestSuite
static

Static variable for test initialization.

Definition at line 549 of file tcp-test.cc.