A Discrete-Event Network Simulator
API
csma-packet-socket.cc File Reference
#include <iostream>
#include <fstream>
#include <string>
#include <cassert>
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/csma-module.h"
#include "ns3/applications-module.h"
+ 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)
 

Variables

std::ofstream g_os
 

Detailed Description

Usage

$ ./ns3 run "csma-packet-socket"

Definition in file csma-packet-socket.cc.

Function Documentation

◆ SinkRx()

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

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

References g_os, and ns3::Packet::GetSize().

+ Here is the call graph for this function:

Variable Documentation

◆ g_os

std::ofstream g_os

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

Referenced by SinkRx().