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

Go to the source code of this file.

Functions

static void SinkRx (std::string path, Ptr< const Packet > p, const Address &address)
 Rx sink.
 

Variables

std::ofstream g_os
 Output stream.
 

Function Documentation

◆ SinkRx()

static void SinkRx ( std::string path,
Ptr< const Packet > p,
const Address & address )
static

Rx sink.

Parameters
pathThe context.
pThe packet.
addressThe sender address.

Definition at line 43 of file csma-packet-socket.cc.

References g_os.

Variable Documentation

◆ g_os

std::ofstream g_os

Output stream.

Definition at line 33 of file csma-packet-socket.cc.

Referenced by SinkRx().