A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
tcp-socket-factory-impl.cc
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 */
9
10#include "tcp-l4-protocol.h"
11
12#include "ns3/assert.h"
13#include "ns3/socket.h"
14
15namespace ns3
16{
17
19 : m_tcp(nullptr)
20{
21}
22
27
28void
33
39
40void
46
47} // namespace ns3
virtual void DoDispose()
Destructor implementation.
Definition object.cc:433
Smart pointer class similar to boost::intrusive_ptr.
static Ptr< Socket > CreateSocket(Ptr< Node > node, TypeId tid)
This method wraps the creation of sockets that is performed on a given node by a SocketFactory specif...
Definition socket.cc:61
void SetTcp(Ptr< TcpL4Protocol > tcp)
Set the associated TCP L4 protocol.
Ptr< Socket > CreateSocket() override
Ptr< TcpL4Protocol > m_tcp
the associated TCP L4 protocol
void DoDispose() override
Destructor implementation.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
Definition assert.h:55
Every class exported by the ns3 library is enclosed in the ns3 namespace.