#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 "ns3/internet-module.h"
Go to the source code of this file.
Functions | |
int | main (int argc, char *argv[]) |
NS_LOG_COMPONENT_DEFINE ("CsmaPingExample") | |
static void | PingRtt (std::string context, Time rtt) |
static void | SinkRx (Ptr< const Packet > p, const Address &ad) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 52 of file csma-ping.cc.
References ns3::NodeContainer::Add(), ns3::Ipv4AddressHelper::Assign(), ns3::Config::Connect(), ns3::Config::ConnectWithoutContext(), ns3::NodeContainer::Create(), ns3::Simulator::Destroy(), ns3::PcapHelperForDevice::EnablePcapAll(), ns3::Packet::EnablePrinting(), ns3::NodeContainer::Get(), ns3::Ipv4InterfaceContainer::GetAddress(), ns3::V4PingHelper::Install(), ns3::PacketSinkHelper::Install(), ns3::CsmaHelper::Install(), ns3::InternetStackHelper::Install(), ns3::MakeCallback(), NS_LOG_INFO, ns3::CommandLine::Parse(), PingRtt(), ns3::Simulator::Run(), ns3::Ipv4AddressHelper::SetBase(), ns3::CsmaHelper::SetChannelAttribute(), ns3::Config::SetDefault(), ns3::CsmaHelper::SetDeviceAttribute(), SinkRx(), ns3::ApplicationContainer::Start(), and ns3::ApplicationContainer::Stop().
NS_LOG_COMPONENT_DEFINE | ( | "CsmaPingExample" | ) |
|
static |
Definition at line 46 of file csma-ping.cc.
Referenced by main().