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
tcp-socket-factory-impl.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2007 Georgia Tech Research Corporation
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Raj Bhattacharjea <raj.b@gatech.edu>
7
*/
8
#ifndef TCP_SOCKET_FACTORY_IMPL_H
9
#define TCP_SOCKET_FACTORY_IMPL_H
10
11
#include "
tcp-socket-factory.h
"
12
13
#include "ns3/ptr.h"
14
15
namespace
ns3
16
{
17
18
class
TcpL4Protocol;
19
20
/**
21
* \ingroup socket
22
* \ingroup tcp
23
*
24
* \brief socket factory implementation for native ns-3 TCP
25
*
26
*
27
* This class serves to create sockets of the TcpSocketBase type.
28
*/
29
class
TcpSocketFactoryImpl
:
public
TcpSocketFactory
30
{
31
public
:
32
TcpSocketFactoryImpl
();
33
~TcpSocketFactoryImpl
()
override
;
34
35
/**
36
* \brief Set the associated TCP L4 protocol.
37
* \param tcp the TCP L4 protocol
38
*/
39
void
SetTcp
(
Ptr<TcpL4Protocol>
tcp);
40
41
Ptr<Socket>
CreateSocket
()
override
;
42
43
protected
:
44
void
DoDispose
()
override
;
45
46
private
:
47
Ptr<TcpL4Protocol>
m_tcp
;
//!< the associated TCP L4 protocol
48
};
49
50
}
// namespace ns3
51
52
#endif
/* TCP_SOCKET_FACTORY_IMPL_H */
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::TcpSocketFactory
API to create TCP socket instances.
Definition
tcp-socket-factory.h:37
ns3::TcpSocketFactoryImpl
socket factory implementation for native ns-3 TCP
Definition
tcp-socket-factory-impl.h:30
ns3::TcpSocketFactoryImpl::SetTcp
void SetTcp(Ptr< TcpL4Protocol > tcp)
Set the associated TCP L4 protocol.
Definition
tcp-socket-factory-impl.cc:29
ns3::TcpSocketFactoryImpl::CreateSocket
Ptr< Socket > CreateSocket() override
Definition
tcp-socket-factory-impl.cc:35
ns3::TcpSocketFactoryImpl::TcpSocketFactoryImpl
TcpSocketFactoryImpl()
Definition
tcp-socket-factory-impl.cc:18
ns3::TcpSocketFactoryImpl::m_tcp
Ptr< TcpL4Protocol > m_tcp
the associated TCP L4 protocol
Definition
tcp-socket-factory-impl.h:47
ns3::TcpSocketFactoryImpl::DoDispose
void DoDispose() override
Destructor implementation.
Definition
tcp-socket-factory-impl.cc:41
ns3::TcpSocketFactoryImpl::~TcpSocketFactoryImpl
~TcpSocketFactoryImpl() override
Definition
tcp-socket-factory-impl.cc:23
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
tcp-socket-factory.h
src
internet
model
tcp-socket-factory-impl.h
Generated on Fri Nov 8 2024 13:59:01 for ns-3 by
1.11.0