Variables | |
address = ns.Ipv4AddressHelper() | |
clientApps = echoClient.Install(p2pNodes.Get(0)) | |
cmd = ns.CommandLine(__file__) | |
csma = ns.CsmaHelper() | |
csmaDevices = csma.Install(csmaNodes) | |
csmaInterfaces = address.Assign(csmaDevices) | |
csmaNodes = ns.NodeContainer() | |
echoClient = ns.UdpEchoClientHelper(csmaInterfaces.GetAddress(nCsma.value).ConvertTo(), 9) | |
echoServer = ns.UdpEchoServerHelper(9) | |
nCsma = c_int(3) | |
p2pDevices = pointToPoint.Install(p2pNodes) | |
p2pInterfaces = address.Assign(p2pDevices) | |
p2pNodes = ns.NodeContainer() | |
pointToPoint = ns.PointToPointHelper() | |
serverApps = echoServer.Install(csmaNodes.Get(nCsma.value)) | |
stack = ns.InternetStackHelper() | |
value | |
verbose = c_bool(True) | |
second.csmaInterfaces = address.Assign(csmaDevices) |
second.echoClient = ns.UdpEchoClientHelper(csmaInterfaces.GetAddress(nCsma.value).ConvertTo(), 9) |
second.p2pInterfaces = address.Assign(p2pDevices) |
second.serverApps = echoServer.Install(csmaNodes.Get(nCsma.value)) |