A Discrete-Event Network Simulator
API
mesh.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.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,. More...
 
void TxTrace (Ptr< const Packet > p)
 Transmission trace sink. More...
 

Variables

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

Function Documentation

◆ RxTrace()

void RxTrace ( Ptr< const Packet p)

Reception trace sink,.

Parameters
pThe received packet.

Definition at line 111 of file mesh.cc.

References g_udpRxCount, ns3::Packet::GetSize(), and NS_LOG_DEBUG.

Referenced by MeshTest::InstallApplication().

+ Here is the call graph for this function:
+ 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 99 of file mesh.cc.

References g_udpTxCount, ns3::Packet::GetSize(), and NS_LOG_DEBUG.

Referenced by MeshTest::InstallApplication().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ g_udpRxCount

uint32_t g_udpRxCount = 0

Tx packet counter.

Definition at line 91 of file mesh.cc.

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

◆ g_udpTxCount

uint32_t g_udpTxCount = 0

Rx packet counter.

Definition at line 90 of file mesh.cc.

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