doc/tutorial/building-topologies.texi
changeset 4028 13c1916747f2
parent 4006 e5843adc7d22
child 4032 2b675a0b3b94
equal deleted inserted replaced
4027:cb86fb0fd36e 4028:13c1916747f2
   103   {
   103   {
   104     LogComponentEnable("UdpEchoClientApplication", LOG_LEVEL_INFO);
   104     LogComponentEnable("UdpEchoClientApplication", LOG_LEVEL_INFO);
   105     LogComponentEnable("UdpEchoServerApplication", LOG_LEVEL_INFO);
   105     LogComponentEnable("UdpEchoServerApplication", LOG_LEVEL_INFO);
   106 @end verbatim
   106 @end verbatim
   107 
   107 
       
   108 A fixed seed is provided to the random number generators so that they will
       
   109 generate repeatable results.
       
   110 
       
   111 @verbatim
       
   112   RandomVariable::UseGlobalSeed (1, 1, 2, 3, 5, 8);
       
   113 @end verbatim
       
   114 
   108 Next, you will see some familiar code that will allow you to change the number
   115 Next, you will see some familiar code that will allow you to change the number
   109 of devices on the CSMA network via command line argument.  We did something
   116 of devices on the CSMA network via command line argument.  We did something
   110 similar when we allowed the number of packets sent to be changed in the section
   117 similar when we allowed the number of packets sent to be changed in the section
   111 on command line arguments.
   118 on command line arguments.
   112 
   119 
   653   int
   660   int
   654   main (int argc, char *argv[])
   661   main (int argc, char *argv[])
   655   {
   662   {
   656     LogComponentEnable("UdpEchoClientApplication", LOG_LEVEL_INFO);
   663     LogComponentEnable("UdpEchoClientApplication", LOG_LEVEL_INFO);
   657     LogComponentEnable("UdpEchoServerApplication", LOG_LEVEL_INFO);
   664     LogComponentEnable("UdpEchoServerApplication", LOG_LEVEL_INFO);
       
   665 @end verbatim
       
   666 
       
   667 A fixed seed is provided to the random number generators so that they will
       
   668 generate repeatable results.
       
   669 
       
   670 @verbatim
       
   671   RandomVariable::UseGlobalSeed (1, 1, 2, 3, 5, 8);
   658 @end verbatim
   672 @end verbatim
   659 
   673 
   660 Next, you will see more familiar code that will allow you to change the number
   674 Next, you will see more familiar code that will allow you to change the number
   661 of devices on the CSMA and Wifi networks via command line argument.
   675 of devices on the CSMA and Wifi networks via command line argument.
   662 
   676