Variables | |
ns | address = ns.Ipv4AddressHelper() |
ns | apDevices = wifi.Install(phy, mac, wifiApNode) |
ns | channel = ns.YansWifiChannelHelper.Default() |
ns | clientApps = echoClient.Install(wifiStaNodes.Get(nWifi.value - 1)) |
ns | cmd = ns.CommandLine(__file__) |
ns | csma = ns.CsmaHelper() |
ns | csmaDevices = csma.Install(csmaNodes) |
ns | csmaInterfaces = address.Assign(csmaDevices) |
ns | csmaNodes = ns.NodeContainer() |
ns | echoClient = ns.UdpEchoClientHelper(csmaInterfaces.GetAddress(nCsma.value).ConvertTo(), 9) |
ns | echoServer = ns.UdpEchoServerHelper(9) |
ns | mac = ns.WifiMacHelper() |
ns | mobility = ns.MobilityHelper() |
c_int | nCsma = c_int(3) |
c_int | nWifi = c_int(3) |
ns | p2pDevices = pointToPoint.Install(p2pNodes) |
ns | p2pInterfaces = address.Assign(p2pDevices) |
ns | p2pNodes = ns.NodeContainer() |
ns | phy = ns.YansWifiPhyHelper() |
ns | pointToPoint = ns.PointToPointHelper() |
ns | serverApps = echoServer.Install(csmaNodes.Get(nCsma.value)) |
ns | ssid = ns.Ssid("ns-3-ssid") |
ns | stack = ns.InternetStackHelper() |
ns | staDevices = wifi.Install(phy, mac, wifiStaNodes) |
c_bool | tracing = c_bool(False) |
try : | |
c_bool | verbose = c_bool(True) |
ns | wifi = ns.WifiHelper() |
ns | wifiApNode = p2pNodes.Get(0) |
ns | wifiStaNodes = ns.NodeContainer() |
ns third.apDevices = wifi.Install(phy, mac, wifiApNode) |
ns third.clientApps = echoClient.Install(wifiStaNodes.Get(nWifi.value - 1)) |
ns third.csmaInterfaces = address.Assign(csmaDevices) |
ns third.echoClient = ns.UdpEchoClientHelper(csmaInterfaces.GetAddress(nCsma.value).ConvertTo(), 9) |
ns third.p2pInterfaces = address.Assign(p2pDevices) |
ns third.serverApps = echoServer.Install(csmaNodes.Get(nCsma.value)) |
ns third.staDevices = wifi.Install(phy, mac, wifiStaNodes) |