1.1 --- a/doc/tutorial/in-process/introduction.texi Thu Apr 02 13:16:13 2009 +0100
1.2 +++ b/doc/tutorial/in-process/introduction.texi Fri Apr 03 20:09:07 2009 +0200
1.3 @@ -487,7 +487,7 @@
1.4 cd
1.5 mkdir repos
1.6 cd !$
1.7 - hg clone http://code.nanam.org/ns-3-dev
1.8 + hg clone http://code.nsnam.org/ns-3-dev
1.9 @end verbatim
1.10
1.11 As the hg command executes, you should see something like the following,
2.1 --- a/examples/csma-broadcast.cc Thu Apr 02 13:16:13 2009 +0100
2.2 +++ b/examples/csma-broadcast.cc Fri Apr 03 20:09:07 2009 +0200
2.3 @@ -36,6 +36,7 @@
2.4 #include "ns3/simulator-module.h"
2.5 #include "ns3/node-module.h"
2.6 #include "ns3/helper-module.h"
2.7 +#include "ns3/contrib-module.h"
2.8
2.9 using namespace ns3;
2.10
2.11 @@ -56,6 +57,9 @@
2.12 CommandLine cmd;
2.13 cmd.Parse (argc, argv);
2.14
2.15 + GtkConfigStore config;
2.16 + config.ConfigureDefaults ();
2.17 +
2.18 NS_LOG_INFO ("Create nodes.");
2.19 NodeContainer c;
2.20 c.Create (3);
2.21 @@ -114,6 +118,8 @@
2.22 ascii.open ("csma-broadcast.tr");
2.23 CsmaHelper::EnableAsciiAll (ascii);
2.24
2.25 + config.ConfigureAttributes ();
2.26 +
2.27 NS_LOG_INFO ("Run Simulation.");
2.28 Simulator::Run ();
2.29 Simulator::Destroy ();
3.1 --- a/samples/main-simulator.cc Thu Apr 02 13:16:13 2009 +0100
3.2 +++ b/samples/main-simulator.cc Fri Apr 03 20:09:07 2009 +0200
3.3 @@ -1,6 +1,7 @@
3.4 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
3.5 #include "ns3/simulator.h"
3.6 #include "ns3/nstime.h"
3.7 +#include "ns3/command-line.h"
3.8 #include <iostream>
3.9
3.10 using namespace ns3;
3.11 @@ -37,6 +38,9 @@
3.12
3.13 int main (int argc, char *argv[])
3.14 {
3.15 + CommandLine cmd;
3.16 + cmd.Parse (argc, argv);
3.17 +
3.18 MyModel model;
3.19
3.20 Simulator::Schedule (Seconds (10.0), &random_function, &model);