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


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

Legend:

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

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