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

Go to the source code of this file.

Functions

static void PingRtt (std::string context, uint16_t seqNo, Time rtt)
 Ping RTT trace sink.
 
static void SinkRx (Ptr< const Packet > p, const Address &ad)
 Rx sink.
 

Function Documentation

◆ PingRtt()

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

Ping RTT trace sink.

Parameters
contextThe context.
seqNoThe Sequence Number.
rttThe RTT.

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

◆ SinkRx()

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

Rx sink.

Parameters
pThe packer.
adThe sender address.

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