A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
wifi-spatial-reuse.cc File Reference
#include "ns3/abort.h"
#include "ns3/ap-wifi-mac.h"
#include "ns3/application-container.h"
#include "ns3/command-line.h"
#include "ns3/config.h"
#include "ns3/double.h"
#include "ns3/he-configuration.h"
#include "ns3/he-phy.h"
#include "ns3/mobility-helper.h"
#include "ns3/multi-model-spectrum-channel.h"
#include "ns3/obss-pd-algorithm.h"
#include "ns3/packet-socket-client.h"
#include "ns3/packet-socket-helper.h"
#include "ns3/packet-socket-server.h"
#include "ns3/spectrum-wifi-helper.h"
#include "ns3/ssid.h"
#include "ns3/string.h"
#include "ns3/wifi-net-device.h"
+ Include dependency graph for wifi-spatial-reuse.cc:

Go to the source code of this file.

Functions

std::vector< uint32_tbytesReceived (4)
 
uint32_t ContextToNodeId (std::string context)
 
void ResetTrace (std::string context, uint8_t bssColor, double rssiDbm, bool powerRestricted, double txPowerMaxDbmSiso, double txPowerMaxDbmMimo)
 
void SocketRx (std::string context, Ptr< const Packet > p, const Address &addr)
 

Variables

std::ofstream g_resetFile1
 
std::ofstream g_resetFile2
 

Function Documentation

◆ bytesReceived()

std::vector< uint32_t > bytesReceived ( 4 )

◆ ContextToNodeId()

uint32_t ContextToNodeId ( std::string context)

Definition at line 103 of file wifi-spatial-reuse.cc.

Referenced by SocketRx().

+ Here is the caller graph for this function:

◆ ResetTrace()

void ResetTrace ( std::string context,
uint8_t bssColor,
double rssiDbm,
bool powerRestricted,
double txPowerMaxDbmSiso,
double txPowerMaxDbmMimo )

Definition at line 118 of file wifi-spatial-reuse.cc.

References g_resetFile1, g_resetFile2, ns3::Time::GetSeconds(), ns3::Simulator::Now(), and NS_FATAL_ERROR.

+ Here is the call graph for this function:

◆ SocketRx()

void SocketRx ( std::string context,
Ptr< const Packet > p,
const Address & addr )

Definition at line 111 of file wifi-spatial-reuse.cc.

References bytesReceived, and ContextToNodeId().

+ Here is the call graph for this function:

Variable Documentation

◆ g_resetFile1

std::ofstream g_resetFile1

Definition at line 99 of file wifi-spatial-reuse.cc.

Referenced by ResetTrace().

◆ g_resetFile2

std::ofstream g_resetFile2

Definition at line 100 of file wifi-spatial-reuse.cc.

Referenced by ResetTrace().