A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
hello-simulator.cc
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or modify
3
* it under the terms of the GNU General Public License version 2 as
4
* published by the Free Software Foundation;
5
*
6
* This program is distributed in the hope that it will be useful,
7
* but WITHOUT ANY WARRANTY; without even the implied warranty of
8
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9
* GNU General Public License for more details.
10
*
11
* You should have received a copy of the GNU General Public License
12
* along with this program; if not, write to the Free Software
13
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
14
*/
15
16
#include "ns3/core-module.h"
17
18
using namespace
ns3
;
19
20
NS_LOG_COMPONENT_DEFINE
(
"HelloSimulator"
);
21
22
int
23
main(
int
argc,
char
* argv[])
24
{
25
NS_LOG_UNCOND
(
"Hello Simulator"
);
26
return
0;
27
}
NS_LOG_UNCOND
#define NS_LOG_UNCOND(msg)
Output the requested message unconditionally.
Definition:
log-macros-enabled.h:260
NS_LOG_COMPONENT_DEFINE
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition:
log.h:202
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
examples
tutorial
hello-simulator.cc
Generated on Fri Mar 31 2023 13:30:37 for ns-3 by
1.9.1