#include "ns3/core-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 ("ObjectNamesExample") | |
void | RxEvent (std::string context, Ptr< const Packet > packet) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 41 of file object-names.cc.
References ns3::Names::Add(), ns3::Ipv4AddressHelper::Assign(), ns3::Config::Connect(), ns3::NodeContainer::Create(), ns3::Simulator::Destroy(), ns3::PcapHelperForDevice::EnablePcap(), ns3::PcapHelperForDevice::EnablePcapAll(), ns3::NetDeviceContainer::Get(), ns3::NodeContainer::Get(), ns3::Ipv4InterfaceContainer::GetAddress(), ns3::UdpEchoServerHelper::Install(), ns3::CsmaHelper::Install(), ns3::InternetStackHelper::Install(), ns3::LOG_LEVEL_INFO, ns3::LogComponentEnable(), ns3::MakeCallback(), ns3::CommandLine::Parse(), port, ns3::Names::Rename(), ns3::Simulator::Run(), RxEvent(), ns3::Config::Set(), ns3::UdpEchoClientHelper::SetAttribute(), ns3::Ipv4AddressHelper::SetBase(), ns3::CsmaHelper::SetChannelAttribute(), ns3::CsmaHelper::SetDeviceAttribute(), ns3::ApplicationContainer::Start(), and ns3::ApplicationContainer::Stop().
NS_LOG_COMPONENT_DEFINE | ( | "ObjectNamesExample" | ) |
Definition at line 35 of file object-names.cc.
References NS_LOG_INFO.
Referenced by main().