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
ipv4-raw-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 "
ipv4-raw-socket-factory.h
"
9
10
#include "ns3/log.h"
11
#include "ns3/uinteger.h"
12
13
namespace
ns3
14
{
15
16
NS_LOG_COMPONENT_DEFINE
(
"Ipv4RawSocketFactory"
);
17
18
NS_OBJECT_ENSURE_REGISTERED
(Ipv4RawSocketFactory);
19
20
TypeId
21
Ipv4RawSocketFactory::GetTypeId
()
22
{
23
static
TypeId
tid =
24
TypeId
(
"ns3::Ipv4RawSocketFactory"
).
SetParent
<
SocketFactory
>().SetGroupName(
"Internet"
);
25
return
tid;
26
}
27
28
}
// namespace ns3
ns3::Ipv4RawSocketFactory::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
ipv4-raw-socket-factory.cc:21
ns3::SocketFactory
Object to create transport layer instances that provide a socket API to applications.
Definition
socket-factory.h:38
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_OBJECT_ENSURE_REGISTERED
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition
object-base.h:35
ipv4-raw-socket-factory.h
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
internet
model
ipv4-raw-socket-factory.cc
Generated on Fri Nov 8 2024 13:59:01 for ns-3 by
1.11.0