author | Mathieu Lacage <mathieu.lacage@sophia.inria.fr> |
Mon, 31 Mar 2008 13:10:59 -0700 | |
changeset 2813 | 64ec8658372e |
parent 1804 | 9c11e776f501 |
permissions | -rw-r--r-- |
1502
4b4799567e2a
add tutorial directory and hello-simulator
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff
changeset
|
1 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
4b4799567e2a
add tutorial directory and hello-simulator
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff
changeset
|
2 |
/* |
4b4799567e2a
add tutorial directory and hello-simulator
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff
changeset
|
3 |
* This program is free software; you can redistribute it and/or modify |
4b4799567e2a
add tutorial directory and hello-simulator
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff
changeset
|
4 |
* it under the terms of the GNU General Public License version 2 as |
4b4799567e2a
add tutorial directory and hello-simulator
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff
changeset
|
5 |
* published by the Free Software Foundation; |
4b4799567e2a
add tutorial directory and hello-simulator
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff
changeset
|
6 |
* |
4b4799567e2a
add tutorial directory and hello-simulator
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff
changeset
|
7 |
* This program is distributed in the hope that it will be useful, |
4b4799567e2a
add tutorial directory and hello-simulator
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff
changeset
|
8 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
4b4799567e2a
add tutorial directory and hello-simulator
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff
changeset
|
9 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
4b4799567e2a
add tutorial directory and hello-simulator
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff
changeset
|
10 |
* GNU General Public License for more details. |
4b4799567e2a
add tutorial directory and hello-simulator
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff
changeset
|
11 |
* |
4b4799567e2a
add tutorial directory and hello-simulator
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff
changeset
|
12 |
* You should have received a copy of the GNU General Public License |
4b4799567e2a
add tutorial directory and hello-simulator
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff
changeset
|
13 |
* along with this program; if not, write to the Free Software |
4b4799567e2a
add tutorial directory and hello-simulator
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff
changeset
|
14 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
4b4799567e2a
add tutorial directory and hello-simulator
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff
changeset
|
15 |
*/ |
4b4799567e2a
add tutorial directory and hello-simulator
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff
changeset
|
16 |
|
2813
64ec8658372e
port to helper API.
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
1804
diff
changeset
|
17 |
#include "ns3/core-module.h" |
1502
4b4799567e2a
add tutorial directory and hello-simulator
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff
changeset
|
18 |
|
1506
3c8b23550e6a
disable log unless debug build
Craig Dowell <craigdo@ee.washington.edu>
parents:
1503
diff
changeset
|
19 |
NS_LOG_COMPONENT_DEFINE ("HelloSimulator"); |
1502
4b4799567e2a
add tutorial directory and hello-simulator
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff
changeset
|
20 |
|
1506
3c8b23550e6a
disable log unless debug build
Craig Dowell <craigdo@ee.washington.edu>
parents:
1503
diff
changeset
|
21 |
using namespace ns3; |
1502
4b4799567e2a
add tutorial directory and hello-simulator
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff
changeset
|
22 |
|
4b4799567e2a
add tutorial directory and hello-simulator
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff
changeset
|
23 |
int |
4b4799567e2a
add tutorial directory and hello-simulator
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff
changeset
|
24 |
main (int argc, char *argv[]) |
4b4799567e2a
add tutorial directory and hello-simulator
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff
changeset
|
25 |
{ |
1773 | 26 |
// LogComponentEnable ("HelloSimulator", |
27 |
// LogLevel (LOG_LEVEL_INFO | LOG_PREFIX_ALL)); |
|
1502
4b4799567e2a
add tutorial directory and hello-simulator
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff
changeset
|
28 |
|
1503
53dd8f414ba6
sorting out logging
Craig Dowell <craigdo@ee.washington.edu>
parents:
1502
diff
changeset
|
29 |
NS_LOG_INFO ("Hello Simulator"); |
1502
4b4799567e2a
add tutorial directory and hello-simulator
Craig Dowell <craigdo@ee.washington.edu>
parents:
diff
changeset
|
30 |
} |