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
socket-factory.cc
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2007 INRIA
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
7
*/
8
#include "
socket-factory.h
"
9
10
#include "ns3/log.h"
11
12
namespace
ns3
13
{
14
15
NS_LOG_COMPONENT_DEFINE
(
"SocketFactory"
);
16
17
NS_OBJECT_ENSURE_REGISTERED
(SocketFactory);
18
19
TypeId
20
SocketFactory::GetTypeId
()
21
{
22
static
TypeId
tid =
TypeId
(
"ns3::SocketFactory"
).
SetParent
<
Object
>().SetGroupName(
"Network"
);
23
return
tid;
24
}
25
26
SocketFactory::SocketFactory
()
27
{
28
NS_LOG_FUNCTION
(
this
);
29
}
30
31
}
// namespace ns3
ns3::Object
A base class which provides memory management and object aggregation.
Definition
object.h:78
ns3::SocketFactory::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
socket-factory.cc:20
ns3::SocketFactory::SocketFactory
SocketFactory()
Definition
socket-factory.cc:26
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
ns3::TypeId::SetParent
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition
type-id.cc:1001
NS_LOG_COMPONENT_DEFINE
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition
log.h:191
NS_LOG_FUNCTION
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
Definition
log-macros-enabled.h:229
NS_OBJECT_ENSURE_REGISTERED
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition
object-base.h:35
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
socket-factory.h
src
network
model
socket-factory.cc
Generated on Fri Nov 1 2024 09:20:45 for ns-3 by
1.11.0