Changes between Initial Version and Version 1 of Documentation/OtherApps/Iperf/IperfUDPSender


Ignore:
Timestamp:
Sep 5, 2006, 9:44:12 PM (18 years ago)
Author:
Surya Satyavolu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/OtherApps/Iperf/IperfUDPSender

    v1 v1  
     1{{{
     2
     3#
     4# Define a prototype
     5#
     6require 'handler/prototype'
     7require 'handler/filter'
     8require 'handler/appDefinition'
     9
     10p = Prototype.create("test:proto:iperfudpsender")
     11p.name = "Iperf UDP Sender"
     12p.description = "Nodes which send a stream of packets"
     13p.defProperty('use_udp', 'Protocol to use')
     14p.defProperty('client', 'Host to send packets to')
     15p.defProperty('sender_rate', 'Number of bits per second', 100000)
     16#p.defProperty('port', 'Port to send packets to')
     17p.defProperty('len', 'Size of packets')
     18p.defProperty('time', 'Experiment duration (sec)', 10)
     19
     20iperfs = p.addApplication(:iperfs, "test:app:iperfs")
     21iperfs.bindProperty('udp','use_udp')
     22iperfs.bindProperty('client')
     23iperfs.bindProperty('bandwidth','sender_rate')
     24iperfs.bindProperty('len')
     25iperfs.bindProperty('time')
     26#iperfs.bindProperty('port')
     27
     28
     29if $0 == __FILE__
     30  p.to_xml.write($stdout, 2)
     31  puts
     32end
     33
     34}}}