examples/mixed-global-routing.cc
changeset 2533 80cdc3eec057
parent 2502 50d0da37f02f
child 2575 1aae382e65e2
equal deleted inserted replaced
2532:86a40c7cbfe9 2533:80cdc3eec057
   102   LogComponentEnable("PacketSinkApplication", LOG_LEVEL_ALL);
   102   LogComponentEnable("PacketSinkApplication", LOG_LEVEL_ALL);
   103   LogComponentEnable("UdpEchoClientApplication", LOG_LEVEL_ALL);
   103   LogComponentEnable("UdpEchoClientApplication", LOG_LEVEL_ALL);
   104   LogComponentEnable("UdpEchoServerApplication", LOG_LEVEL_ALL);
   104   LogComponentEnable("UdpEchoServerApplication", LOG_LEVEL_ALL);
   105 #endif
   105 #endif
   106   // Set up some default values for the simulation.  Use the Bind ()
   106   // Set up some default values for the simulation.  Use the Bind ()
   107   // technique to tell the system what subclass of Queue to use,
   107 
   108   // and what the queue limit is
       
   109 
       
   110   // The below DefaultValue::Bind command tells the queue factory which 
       
   111   // class to instantiate, when the queue factory is invoked in the 
       
   112   // topology code
       
   113   DefaultValue::Bind ("Queue", "DropTailQueue");
       
   114 
   108 
   115   Config::SetDefault ("OnOffApplication::PacketSize", Uinteger (210));
   109   Config::SetDefault ("OnOffApplication::PacketSize", Uinteger (210));
   116   Config::SetDefault ("OnOffApplication::DataRate", DataRate ("448kb/s"));
   110   Config::SetDefault ("OnOffApplication::DataRate", DataRate ("448kb/s"));
   117 
   111 
   118   // Allow the user to override any of the defaults and the above
   112   // Allow the user to override any of the defaults and the above