A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
udp-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 */
9
10#include "ns3/uinteger.h"
11
12namespace ns3
13{
14
15NS_OBJECT_ENSURE_REGISTERED(UdpSocketFactory);
16
17TypeId
19{
20 static TypeId tid =
21 TypeId("ns3::UdpSocketFactory").SetParent<SocketFactory>().SetGroupName("Internet");
22 return tid;
23}
24
25} // namespace ns3
Object to create transport layer instances that provide a socket API to applications.
a unique identifier for an interface.
Definition type-id.h:48
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition type-id.cc:1001
static TypeId GetTypeId()
Get the type ID.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition object-base.h:35
Every class exported by the ns3 library is enclosed in the ns3 namespace.