Add abstract base class TcpSocket

This commit is contained in:
Tom Henderson
2008-05-20 12:36:05 -07:00
parent c21d79a87b
commit 49d5404bfc
3 changed files with 5 additions and 3 deletions

View File

@@ -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),

View File

@@ -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);

View File

@@ -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',