A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
hello-simulator.cc
Go to the documentation of this file.
1
/*
2
* SPDX-License-Identifier: GPL-2.0-only
3
*/
4
5
#include "ns3/core-module.h"
6
7
using namespace
ns3
;
8
9
NS_LOG_COMPONENT_DEFINE
(
"HelloSimulator"
);
10
11
int
12
main(
int
argc,
char
* argv[])
13
{
14
NS_LOG_UNCOND
(
"Hello Simulator"
);
15
return
0;
16
}
NS_LOG_UNCOND
#define NS_LOG_UNCOND(msg)
Output the requested message unconditionally.
Definition
log-macros-enabled.h:253
NS_LOG_COMPONENT_DEFINE
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition
log.h:191
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
examples
tutorial
hello-simulator.cc
Generated on Fri Nov 8 2024 13:58:58 for ns-3 by
1.11.0