A Discrete-Event Network Simulator
 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.


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


std::ofstream g_os

Function Documentation

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

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