Fix TCP server socket connection notification (part of bug 132)
authorRaj Bhattacharjea <raj.b@gatech.edu>
Wed, 13 Feb 2008 09:55:15 -0500
changeset 2330 6ae8117d4ffe
parent 2329 eadca3b1de1a
child 2331 9df551386a93
Fix TCP server socket connection notification (part of bug 132)
src/internet-node/tcp-socket.cc
--- a/src/internet-node/tcp-socket.cc	Wed Feb 13 18:23:20 2008 +0000
+++ b/src/internet-node/tcp-socket.cc	Wed Feb 13 09:55:15 2008 -0500
@@ -664,7 +664,7 @@
     case SERV_NOTIFY:
       NS_LOG_LOGIC ("TcpSocket " << this <<" Action SERV_NOTIFY");
       NS_LOG_LOGIC ("TcpSocket " << this << " Connected!");
-      NotifyConnectionSucceeded ();
+      NotifyNewConnectionCreated (this, fromAddress);
       m_connected = true; // ! This is bogus; fix when we clone the tcp
       m_endPoint->SetPeer (m_defaultAddress, m_defaultPort);
       //treat the connection orientation final ack as a newack