A Discrete-Event Network Simulator
API
Functions
main-simple.cc File Reference
#include <iostream>
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/internet-module.h"

Go to the source code of this file.

Functions

static void GenerateTraffic (Ptr< Socket > socket, uint32_t size)
 
static void PrintTraffic (Ptr< Socket > socket)
 
void RunSimulation (void)
 
static void SocketPrinter (Ptr< Socket > socket)
 

Function Documentation

◆ GenerateTraffic()

static void GenerateTraffic ( Ptr< Socket socket,
uint32_t  size 
)
static

◆ PrintTraffic()

static void PrintTraffic ( Ptr< Socket socket)
static

Definition at line 55 of file main-simple.cc.

References ns3::MakeCallback(), ns3::Socket::SetRecvCallback(), and SocketPrinter().

Referenced by RunSimulation().

◆ RunSimulation()

void RunSimulation ( void  )

◆ SocketPrinter()

static void SocketPrinter ( Ptr< Socket socket)
static