A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
udp-socket-factory.h
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#ifndef UDP_SOCKET_FACTORY_H
9#define UDP_SOCKET_FACTORY_H
10
11#include "ns3/socket-factory.h"
12
13namespace ns3
14{
15
16class Socket;
17
18/**
19 * @ingroup socket
20 * @ingroup udp
21 *
22 * @brief API to create UDP socket instances
23 *
24 * This abstract class defines the API for UDP socket factory.
25 * All UDP implementations must provide an implementation of CreateSocket
26 * below.
27 *
28 * @see UdpSocketFactoryImpl
29 */
31{
32 public:
33 /**
34 * @brief Get the type ID.
35 * @return the object TypeId
36 */
37 static TypeId GetTypeId();
38};
39
40} // namespace ns3
41
42#endif /* UDP_SOCKET_FACTORY_H */
Object to create transport layer instances that provide a socket API to applications.
a unique identifier for an interface.
Definition type-id.h:48
API to create UDP socket instances.
static TypeId GetTypeId()
Get the type ID.
Every class exported by the ns3 library is enclosed in the ns3 namespace.