Revision be963554 examples/udpbwtest.py

View differences:

examples/udpbwtest.py
6 6
udp traffic. This should be something of a stress test.
7 7

  
8 8
We should also make a tcp version. :D
9

  
10
In addition to trying to saturate global bandwidth in
11
various Mininet configurations, this example:
12

  
13
- uses a topology, TreeTopo, from mininet.topolib
14
- starts up a custom test program, udpbwtest, on each host
15
- dynamically monitors the output of a set of hosts
16

  
9 17
"""
10 18

  
11 19
import os
......
36 44
def monitor( hosts, seconds ):
37 45
   "Monitor a set of hosts and yield their output."
38 46
   poller = select.poll()
39
   Node = hosts[ 0 ] # so we can call class method
47
   Node = hosts[ 0 ] # so we can call class method fdToNode
40 48
   buffers = {}
41 49
   for host in hosts:
42 50
      poller.register( host.stdout )

Also available in: Unified diff