A Discrete-Event Network Simulator
API
second.py File Reference

Go to the source code of this file.

Namespaces

namespace  second
 

Variables

 second.address = ns.internet.Ipv4AddressHelper()
 
 second.clientApps = echoClient.Install(p2pNodes.Get(0))
 
 second.cmd = ns.cppyy.gbl.GetCommandLine(__file__, nCsma, verbose)
 
 second.csma = ns.csma.CsmaHelper()
 
 second.csmaDevices = csma.Install(csmaNodes)
 
 second.csmaInterfaces = address.Assign(csmaDevices)
 
 second.csmaNodes = ns.network.NodeContainer()
 
 second.echoClient = ns.applications.UdpEchoClientHelper(ns.addressFromIpv4Address(csmaInterfaces.GetAddress(nCsma)), 9)
 
 second.echoServer = ns.applications.UdpEchoServerHelper(9)
 
 second.nCsma = c_int(3)
 
 second.p2pDevices = pointToPoint.Install(p2pNodes)
 
 second.p2pInterfaces = address.Assign(p2pDevices)
 
 second.p2pNodes = ns.network.NodeContainer()
 
 second.pointToPoint = ns.point_to_point.PointToPointHelper()
 
 second.serverApps = echoServer.Install(csmaNodes.Get(nCsma))
 
 second.stack = ns.internet.InternetStackHelper()
 
 second.verbose = c_bool(True)