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
packet-socket-factory.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2007 Emmanuelle Laprise
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Emmanuelle Laprise <emmanuelle.laprise@bluekazoo.ca>
7
*/
8
#ifndef PACKET_SOCKET_FACTORY_H
9
#define PACKET_SOCKET_FACTORY_H
10
11
#include "ns3/socket-factory.h"
12
13
namespace
ns3
14
{
15
16
class
Socket;
17
18
/**
19
* \ingroup socket
20
*
21
* This can be used as an interface in a node in order for the node to
22
* generate PacketSockets that can connect to net devices.
23
*/
24
class
PacketSocketFactory
:
public
SocketFactory
25
{
26
public
:
27
/**
28
* \brief Get the type ID.
29
* \return the object TypeId
30
*/
31
static
TypeId
GetTypeId
();
32
33
PacketSocketFactory
();
34
35
/**
36
* Creates a PacketSocket and returns a pointer to it.
37
*
38
* \return a pointer to the created socket
39
*/
40
Ptr<Socket>
CreateSocket
()
override
;
41
};
42
43
}
// namespace ns3
44
45
#endif
/* PACKET_SOCKET_FACTORY_H */
ns3::PacketSocketFactory
This can be used as an interface in a node in order for the node to generate PacketSockets that can c...
Definition
packet-socket-factory.h:25
ns3::PacketSocketFactory::PacketSocketFactory
PacketSocketFactory()
Definition
packet-socket-factory.cc:30
ns3::PacketSocketFactory::CreateSocket
Ptr< Socket > CreateSocket() override
Creates a PacketSocket and returns a pointer to it.
Definition
packet-socket-factory.cc:36
ns3::PacketSocketFactory::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
packet-socket-factory.cc:23
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
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
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
network
utils
packet-socket-factory.h
Generated on Fri Nov 8 2024 13:59:05 for ns-3 by
1.11.0