A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
mesh-example.cc File Reference
#include "ns3/applications-module.h"
#include "ns3/core-module.h"
#include "ns3/internet-module.h"
#include "ns3/mesh-helper.h"
#include "ns3/mesh-module.h"
#include "ns3/mobility-module.h"
#include "ns3/network-module.h"
#include "ns3/yans-wifi-helper.h"
#include <fstream>
#include <iostream>
#include <sstream>
+ Include dependency graph for mesh-example.cc:

Go to the source code of this file.

Classes

class  MeshTest
 MeshTest class. More...
 

Functions

void RxTrace (Ptr< const Packet > p)
 Reception trace sink,.
 
void TxTrace (Ptr< const Packet > p)
 Transmission trace sink.
 

Variables

uint32_t g_udpRxCount = 0
 Tx packet counter.
 
uint32_t g_udpTxCount = 0
 Rx packet counter.
 

Function Documentation

◆ RxTrace()

void RxTrace ( Ptr< const Packet > p)

Reception trace sink,.

Parameters
pThe received packet.

Definition at line 100 of file mesh-example.cc.

References g_udpRxCount, and NS_LOG_DEBUG.

Referenced by MeshTest::InstallApplication().

+ Here is the caller graph for this function:

◆ TxTrace()

void TxTrace ( Ptr< const Packet > p)

Transmission trace sink.

Parameters
pThe sent packet.

Definition at line 88 of file mesh-example.cc.

References g_udpTxCount, and NS_LOG_DEBUG.

Referenced by MeshTest::InstallApplication().

+ Here is the caller graph for this function:

Variable Documentation

◆ g_udpRxCount

uint32_t g_udpRxCount = 0

Tx packet counter.

Definition at line 80 of file mesh-example.cc.

Referenced by MeshTest::Run(), and RxTrace().

◆ g_udpTxCount

uint32_t g_udpTxCount = 0

Rx packet counter.

Definition at line 79 of file mesh-example.cc.

Referenced by MeshTest::Run(), and TxTrace().