A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
second Namespace Reference

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)
 

Variable Documentation

◆ address

second.address = ns.Ipv4AddressHelper()

Definition at line 62 of file second.py.

◆ clientApps

second.clientApps = echoClient.Install(p2pNodes.Get(0))

Definition at line 80 of file second.py.

◆ cmd

second.cmd = ns.CommandLine(__file__)

Definition at line 29 of file second.py.

◆ csma

second.csma = ns.CsmaHelper()

Definition at line 52 of file second.py.

◆ csmaDevices

second.csmaDevices = csma.Install(csmaNodes)

Definition at line 56 of file second.py.

◆ csmaInterfaces

second.csmaInterfaces = address.Assign(csmaDevices)

Definition at line 67 of file second.py.

◆ csmaNodes

second.csmaNodes = ns.NodeContainer()

Definition at line 42 of file second.py.

◆ echoClient

second.echoClient = ns.UdpEchoClientHelper(csmaInterfaces.GetAddress(nCsma.value).ConvertTo(), 9)

Definition at line 75 of file second.py.

◆ echoServer

second.echoServer = ns.UdpEchoServerHelper(9)

Definition at line 69 of file second.py.

◆ nCsma

second.nCsma = c_int(3)

Definition at line 27 of file second.py.

◆ p2pDevices

second.p2pDevices = pointToPoint.Install(p2pNodes)

Definition at line 50 of file second.py.

◆ p2pInterfaces

second.p2pInterfaces = address.Assign(p2pDevices)

Definition at line 64 of file second.py.

◆ p2pNodes

second.p2pNodes = ns.NodeContainer()

Definition at line 39 of file second.py.

◆ pointToPoint

second.pointToPoint = ns.PointToPointHelper()

Definition at line 46 of file second.py.

◆ serverApps

second.serverApps = echoServer.Install(csmaNodes.Get(nCsma.value))

Definition at line 71 of file second.py.

◆ stack

second.stack = ns.InternetStackHelper()

Definition at line 58 of file second.py.

◆ value

second.value

Definition at line 37 of file second.py.

◆ verbose

second.verbose = c_bool(True)

Definition at line 28 of file second.py.