A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

int main (int argc, char *argv[])
 
static void SinkRx (std::string path, Ptr< const Packet > p, const Address &address)
 

Variables

std::ofstream g_os
 

Function Documentation

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().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

std::ofstream g_os

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

Referenced by main(), and SinkRx().