Make PacketSink multitasking for TCP (closes bug 244)

This commit is contained in:
Raj Bhattacharjea committed 2008-07-23 16:09:17 -04:00
1 parent 50b884c4bc
commit 69f71dc2bc
3 files changed
+23 -3

No files matched your search

+4 -1
View File
@@ -86,7 +86,7 @@ TcpSocketImpl::GetTypeId ()
}
TcpSocketImpl::TcpSocketImpl(const TcpSocketImpl& sock)
: TcpSocket(sock), //copy the base class callbacks
: TcpSocket(sock), //copy object::m_tid, copy socket::callbacks
m_skipRetxResched (sock.m_skipRetxResched),
m_dupAckCount (sock.m_dupAckCount),
m_delAckCount (0),
@@ -140,6 +140,9 @@ TcpSocketImpl::TcpSocketImpl(const TcpSocketImpl& sock)
{
m_rtt = sock.m_rtt->Copy();
}
//null out the socket base class recvcallback,
//make user of the socket register this explicitly
SetRecvCallback (MakeNullCallback<void, Ptr<Socket> > () );
//can't "copy" the endpoint just yes, must do this when we know the peer info
//too; this is in SYN_ACK_TX
}