#include <cstdlib>
#include <sys/time.h>
#include <fstream>
#include "ns3/core-module.h"
#include "ns3/internet-module.h"
#include "ns3/network-module.h"
#include "ns3/on-off-helper.h"
#include "ns3/packet-sink-helper.h"
#include "ns3/point-to-point-helper.h"
#include "ns3/mpi-interface.h"
#include "ns3/ipv4-static-routing-helper.h"
#include "ns3/ipv4-list-routing-helper.h"
#include "ns3/ipv4-nix-vector-helper.h"
Go to the source code of this file.
Macros | |
#define | TIMER_DIFF(_t1, _t2) (TIMER_SECONDS (_t1) - TIMER_SECONDS (_t2)) |
#define | TIMER_NOW(_t) gettimeofday (&_t,NULL); |
#define | TIMER_SECONDS(_t) ((double)(_t).tv_sec + (_t).tv_usec * 1e-6) |
Typedefs | |
typedef struct timeval | TIMER_TYPE |
Functions | |
int | main (int argc, char *argv[]) |
NS_LOG_COMPONENT_DEFINE ("CampusNetworkModelDistributed") |
#define TIMER_DIFF | ( | _t1, | |
_t2 | |||
) | (TIMER_SECONDS (_t1) - TIMER_SECONDS (_t2)) |
Definition at line 61 of file nms-p2p-nix-distributed.cc.
Referenced by main().
#define TIMER_NOW | ( | _t | ) | gettimeofday (&_t,NULL); |
Definition at line 59 of file nms-p2p-nix-distributed.cc.
Referenced by main().
#define TIMER_SECONDS | ( | _t | ) | ((double)(_t).tv_sec + (_t).tv_usec * 1e-6) |
Definition at line 60 of file nms-p2p-nix-distributed.cc.
typedef struct timeval TIMER_TYPE |
Definition at line 58 of file nms-p2p-nix-distributed.cc.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 66 of file nms-p2p-nix-distributed.cc.
References ns3::Ipv4ListRoutingHelper::Add(), ns3::ApplicationContainer::Add(), ns3::NodeContainer::Add(), ns3::CommandLine::AddValue(), ns3::Ipv4AddressHelper::Assign(), ns3::GlobalValue::Bind(), ns3::Simulator::Destroy(), ns3::MpiInterface::Disable(), ns3::MpiInterface::Enable(), ns3::NodeContainer::Get(), ns3::Ipv4InterfaceContainer::GetAddress(), ns3::Ipv4Address::GetAny(), ns3::NodeList::GetNNodes(), ns3::MpiInterface::GetSize(), ns3::MpiInterface::GetSystemId(), ns3::UniformRandomVariable::GetValue(), ns3::PacketSinkHelper::Install(), ns3::OnOffHelper::Install(), ns3::PointToPointHelper::Install(), ns3::InternetStackHelper::Install(), list, NS_FATAL_ERROR, ns3::CommandLine::Parse(), ns3::Ipv4GlobalRoutingHelper::PopulateRoutingTables(), ns3::Simulator::Run(), ns3::Seconds(), ns3::OnOffHelper::SetAttribute(), ns3::Ipv4AddressHelper::SetBase(), ns3::PointToPointHelper::SetChannelAttribute(), ns3::Config::SetDefault(), ns3::PointToPointHelper::SetDeviceAttribute(), ns3::InternetStackHelper::SetRoutingHelper(), ns3::ApplicationContainer::Start(), ns3::Simulator::Stop(), TIMER_DIFF, TIMER_NOW, and sample-rng-plot::x.
NS_LOG_COMPONENT_DEFINE | ( | "CampusNetworkModelDistributed" | ) |