Add abstract base class TcpSocket
This commit is contained in:
@@ -90,7 +90,7 @@ TcpSocketImpl::GetTypeId ()
|
||||
}
|
||||
|
||||
TcpSocketImpl::TcpSocketImpl(const TcpSocketImpl& sock)
|
||||
: Socket(sock), //copy the base class callbacks
|
||||
: TcpSocket(sock), //copy the base class callbacks
|
||||
m_skipRetxResched (sock.m_skipRetxResched),
|
||||
m_dupAckCount (sock.m_dupAckCount),
|
||||
m_delAckCount (0),
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include <queue>
|
||||
#include "ns3/callback.h"
|
||||
#include "ns3/traced-value.h"
|
||||
#include "ns3/socket.h"
|
||||
#include "ns3/tcp-socket.h"
|
||||
#include "ns3/ptr.h"
|
||||
#include "ns3/ipv4-address.h"
|
||||
#include "ns3/event-id.h"
|
||||
@@ -42,7 +42,7 @@ class Packet;
|
||||
class TcpL4Protocol;
|
||||
class TcpHeader;
|
||||
|
||||
class TcpSocketImpl : public Socket
|
||||
class TcpSocketImpl : public TcpSocket
|
||||
{
|
||||
public:
|
||||
static TypeId GetTypeId (void);
|
||||
|
||||
@@ -27,6 +27,7 @@ def build(bld):
|
||||
'packet-socket.cc',
|
||||
'udp-socket.cc',
|
||||
'udp-socket-factory.cc',
|
||||
'tcp-socket.cc',
|
||||
'tcp-socket-factory.cc',
|
||||
'ipv4.cc',
|
||||
'application.cc',
|
||||
@@ -60,6 +61,7 @@ def build(bld):
|
||||
'packet-socket-factory.h',
|
||||
'udp-socket.h',
|
||||
'udp-socket-factory.h',
|
||||
'tcp-socket.h',
|
||||
'tcp-socket-factory.h',
|
||||
'ipv4.h',
|
||||
'application.h',
|
||||
|
||||
Reference in New Issue
Block a user