Fix TCP server socket connection notification (part of bug 132)

This commit is contained in:
Raj Bhattacharjea
2008-02-13 09:55:15 -05:00
parent f8ae534480
commit cdc9002e41

View File

@@ -664,7 +664,7 @@ bool TcpSocket::ProcessPacketAction (Actions_t a, Ptr<Packet> p,
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