A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
internet
model
nsc-tcp-socket-factory-impl.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* This program is free software; you can redistribute it and/or modify
4
* it under the terms of the GNU General Public License version 2 as
5
* published by the Free Software Foundation;
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software
14
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15
*/
16
#ifndef NSC_TCP_SOCKET_FACTORY_IMPL_H
17
#define NSC_TCP_SOCKET_FACTORY_IMPL_H
18
19
#include "ns3/tcp-socket-factory.h"
20
#include "ns3/ptr.h"
21
22
namespace
ns3
{
23
24
class
NscTcpL4Protocol;
25
44
class
NscTcpSocketFactoryImpl
:
public
TcpSocketFactory
45
{
46
public
:
47
NscTcpSocketFactoryImpl
();
48
virtual
~NscTcpSocketFactoryImpl
();
49
54
void
SetTcp
(
Ptr<NscTcpL4Protocol>
tcp);
55
56
virtual
Ptr<Socket>
CreateSocket
(
void
);
57
58
protected
:
59
virtual
void
DoDispose
(
void
);
60
private
:
61
Ptr<NscTcpL4Protocol>
m_tcp
;
62
};
63
64
}
// namespace ns3
65
66
#endif
/* NSC_TCP_SOCKET_FACTORY_IMPL_H */
ns3::NscTcpSocketFactoryImpl::NscTcpSocketFactoryImpl
NscTcpSocketFactoryImpl()
Definition:
nsc-tcp-socket-factory-impl.cc:23
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:73
ns3::TcpSocketFactory
API to create TCP socket instances.
Definition:
tcp-socket-factory.h:47
ns3::NscTcpSocketFactoryImpl::~NscTcpSocketFactoryImpl
virtual ~NscTcpSocketFactoryImpl()
Definition:
nsc-tcp-socket-factory-impl.cc:27
ns3::NscTcpSocketFactoryImpl::CreateSocket
virtual Ptr< Socket > CreateSocket(void)
Definition:
nsc-tcp-socket-factory-impl.cc:39
ns3::NscTcpSocketFactoryImpl::DoDispose
virtual void DoDispose(void)
Destructor implementation.
Definition:
nsc-tcp-socket-factory-impl.cc:45
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::NscTcpSocketFactoryImpl::m_tcp
Ptr< NscTcpL4Protocol > m_tcp
the associated TCP L4 protocol
Definition:
nsc-tcp-socket-factory-impl.h:61
ns3::NscTcpSocketFactoryImpl::SetTcp
void SetTcp(Ptr< NscTcpL4Protocol > tcp)
Set the associated TCP L4 protocol.
Definition:
nsc-tcp-socket-factory-impl.cc:33
ns3::NscTcpSocketFactoryImpl
socket factory implementation for creating instances of NSC TCP
Definition:
nsc-tcp-socket-factory-impl.h:44
Generated on Wed Nov 7 2018 10:01:55 for ns-3 by
1.8.14