#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 |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 53 of file csma-packet-socket.cc.
References ns3::Config::Connect(), ns3::NodeContainer::Create(), ns3::AsciiTraceHelper::CreateFileStream(), ns3::Simulator::Destroy(), ns3::AsciiTraceHelperForDevice::EnableAsciiAll(), g_os, ns3::NetDeviceContainer::Get(), ns3::NodeContainer::Get(), ns3::PacketSocketHelper::Install(), ns3::PacketSinkHelper::Install(), ns3::OnOffHelper::Install(), ns3::CsmaHelper::Install(), ns3::LOG_LEVEL_INFO, ns3::LogComponentEnable(), ns3::MakeCallback(), ns3::MilliSeconds(), first::nodes, NS_LOG_INFO, ns3::CommandLine::Parse(), ns3::Simulator::Run(), ns3::Seconds(), ns3::OnOffHelper::SetAttribute(), ns3::OnOffHelper::SetConstantRate(), ns3::CsmaHelper::SetDeviceAttribute(), ns3::PacketSocketAddress::SetPhysicalAddress(), ns3::PacketSocketAddress::SetProtocol(), ns3::PacketSocketAddress::SetSingleDevice(), SinkRx(), ns3::ApplicationContainer::Start(), and ns3::ApplicationContainer::Stop().
Here is the call graph for this function: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:| std::ofstream g_os |
Definition at line 42 of file csma-packet-socket.cc.