A Discrete-Event Network Simulator
API
csma-ping.cc File Reference
#include <iostream>
#include <fstream>
#include <string>
#include <cassert>
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/csma-module.h"
#include "ns3/applications-module.h"
#include "ns3/internet-apps-module.h"
#include "ns3/internet-module.h"
+ Include dependency graph for csma-ping.cc:

Go to the source code of this file.

Functions

static void PingRtt (std::string context, Time rtt)
 
static void SinkRx (Ptr< const Packet > p, const Address &ad)
 

Detailed Description

Usage

$ ./ns3 run "csma-ping"

Definition in file csma-ping.cc.

Function Documentation

◆ PingRtt()

static void PingRtt ( std::string  context,
Time  rtt 
)
static

Definition at line 47 of file csma-ping.cc.

◆ SinkRx()

static void SinkRx ( Ptr< const Packet p,
const Address ad 
)
static

Definition at line 42 of file csma-ping.cc.