#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/mobility-module.h"
#include "ns3/config-store-module.h"
#include "ns3/wifi-module.h"
#include "ns3/internet-module.h"
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
Go to the source code of this file.
Functions | |
static void | GenerateTraffic (Ptr< Socket > socket, uint32_t pktSize, uint32_t pktCount, Time pktInterval) |
int | main (int argc, char *argv[]) |
NS_LOG_COMPONENT_DEFINE ("WifiSimpleInterference") | |
static std::string | PrintReceivedPacket (Ptr< Socket > socket) |
static void | ReceivePacket (Ptr< Socket > socket) |
|
static |
Definition at line 116 of file wifi-simple-interference.cc.
References ns3::Socket::Close(), ns3::Simulator::Schedule(), and ns3::Socket::Send().
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 132 of file wifi-simple-interference.cc.
References ns3::ListPositionAllocator::Add(), ns3::NetDeviceContainer::Add(), ns3::YansWifiChannelHelper::AddPropagationLoss(), ns3::CommandLine::AddValue(), ns3::Ipv4AddressHelper::Assign(), ns3::Socket::Bind(), ns3::Socket::Connect(), ns3::YansWifiChannelHelper::Create(), ns3::NodeContainer::Create(), ns3::Socket::CreateSocket(), ns3::NqosWifiMacHelper::Default(), ns3::YansWifiPhyHelper::Default(), ns3::Simulator::Destroy(), first::devices, ns3::YansWifiPhyHelper::DLT_IEEE802_11_RADIO, ns3::WifiHelper::EnableLogComponents(), ns3::PcapHelperForDevice::EnablePcap(), GenerateTraffic(), ns3::NetDeviceContainer::Get(), ns3::NodeContainer::Get(), ns3::Node::GetId(), ns3::Socket::GetNode(), ns3::InternetStackHelper::Install(), ns3::WifiHelper::Install(), ns3::MobilityHelper::Install(), ns3::TypeId::LookupByName(), ns3::MakeCallback(), NS_LOG_INFO, NS_LOG_UNCOND, ns3::CommandLine::Parse(), ReceivePacket(), ns3::Simulator::Run(), ns3::Simulator::ScheduleWithContext(), ns3::YansWifiPhyHelper::Set(), ns3::Socket::SetAllowBroadcast(), ns3::Ipv4AddressHelper::SetBase(), ns3::YansWifiPhyHelper::SetChannel(), ns3::Config::SetDefault(), ns3::MobilityHelper::SetMobilityModel(), ns3::YansWifiPhyHelper::SetPcapDataLinkType(), ns3::MobilityHelper::SetPositionAllocator(), ns3::YansWifiChannelHelper::SetPropagationDelay(), ns3::Socket::SetRecvCallback(), ns3::WifiHelper::SetRemoteStationManager(), ns3::WifiHelper::SetStandard(), ns3::NqosWifiMacHelper::SetType(), startTime, verbose, and ns3::WIFI_PHY_STANDARD_80211b.
NS_LOG_COMPONENT_DEFINE | ( | "WifiSimpleInterference" | ) |
Definition at line 99 of file wifi-simple-interference.cc.
References ns3::InetSocketAddress::ConvertFrom(), ns3::InetSocketAddress::GetIpv4(), ns3::InetSocketAddress::GetPort(), and ns3::Socket::GetSockName().
Referenced by ReceivePacket().
Definition at line 111 of file wifi-simple-interference.cc.
References NS_LOG_UNCOND, and PrintReceivedPacket().
Referenced by main().