[Ns-developers] Udp-echo-client modification
Francisco J. Carmona
fjcarmona at citic.es
Fri Feb 6 05:30:51 PST 2009
Hi all,
We've made some modifications to the udp-echo-client application to be
able to add a text string as data in the packets.
A example of use will be in the definition of the echoClient, adding:
echoClient.SetAttribute ("MaxPackets", UintegerValue (1));
echoClient.SetAttribute ("Interval", TimeValue (Seconds (5.)));
echoClient.SetAttribute ("PacketSize", UintegerValue (1024));
echoClient.SetAttribute ("PacketData", StringValue("Hello world");
Regards,
CITIC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: udp-echo-client.cc
Type: text/x-c++src
Size: 5558 bytes
Desc: not available
Url : http://mailman.isi.edu/pipermail/ns-developers/attachments/20090206/4022d4ea/udp-echo-client.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: udp-echo-client.h
Type: text/x-chdr
Size: 1866 bytes
Desc: not available
Url : http://mailman.isi.edu/pipermail/ns-developers/attachments/20090206/4022d4ea/udp-echo-client-0001.bin
More information about the Ns-developers
mailing list