A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
wifi-example-sim.cc File Reference
#include <ctime>
#include <sstream>
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/mobility-module.h"
#include "ns3/wifi-module.h"
#include "ns3/internet-module.h"
#include "ns3/stats-module.h"
#include "wifi-example-apps.h"
+ Include dependency graph for wifi-example-sim.cc:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 
void TxCallback (Ptr< CounterCalculator< uint32_t > > datac, std::string path, Ptr< const Packet > packet)
 

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Just to show this is here... Ptr<MinMaxAvgTotalCalculator<uint32_t> > test = CreateObject<MinMaxAvgTotalCalculator<uint32_t> >(); test->SetKey("test-dc"); data.AddDataCalculator(test);

test->Update(4); test->Update(8); test->Update(24); test->Update(12);

Definition at line 69 of file wifi-example-sim.cc.

References ns3::ListPositionAllocator::Add(), ns3::Node::AddApplication(), ns3::DataCollector::AddDataCalculator(), ns3::DataCollector::AddMetadata(), ns3::CommandLine::AddValue(), ns3::Ipv4AddressHelper::Assign(), ns3::Config::Connect(), ns3::YansWifiChannelHelper::Create(), ns3::NodeContainer::Create(), data, ns3::NqosWifiMacHelper::Default(), ns3::YansWifiChannelHelper::Default(), ns3::WifiHelper::Default(), ns3::YansWifiPhyHelper::Default(), ns3::DataCollector::DescribeRun(), ns3::Simulator::Destroy(), experiment(), ns3::NodeList::GetNode(), ns3::InternetStackHelper::Install(), ns3::WifiHelper::Install(), ns3::MobilityHelper::Install(), ns3::MakeBoundCallback(), ns3::MakeCallback(), first::nodes, NS_LOG_ERROR, NS_LOG_INFO, ns3::DataOutputInterface::Output(), output, ns3::PacketCounterCalculator::PacketUpdate(), ns3::PacketSizeMinMaxAvgTotalCalculator::PacketUpdate(), ns3::CommandLine::Parse(), ns3::Simulator::Run(), ns3::Config::Set(), ns3::Ipv4AddressHelper::SetBase(), ns3::YansWifiPhyHelper::SetChannel(), ns3::DataCalculator::SetContext(), Receiver::SetCounter(), Receiver::SetDelayTracker(), ns3::DataCalculator::SetKey(), ns3::MobilityHelper::SetPositionAllocator(), ns3::Application::SetStartTime(), ns3::NqosWifiMacHelper::SetType(), and TxCallback().

+ Here is the call graph for this function:

void TxCallback ( Ptr< CounterCalculator< uint32_t > >  datac,
std::string  path,
Ptr< const Packet packet 
)

Definition at line 55 of file wifi-example-sim.cc.

References NS_LOG_INFO.

Referenced by main().

+ Here is the caller graph for this function: