diff --git a/src/internet-stack/tcp-l4-protocol.cc b/src/internet-stack/tcp-l4-protocol.cc index f838ef251..c8664c9a2 100644 --- a/src/internet-stack/tcp-l4-protocol.cc +++ b/src/internet-stack/tcp-l4-protocol.cc @@ -324,8 +324,6 @@ TcpL4Protocol::Send (Ptr packet, m_node->GetObject (); if (ipv4 != 0) { - // XXX We've already performed the route lookup in TcpSocketImpl - // should be cached. Ipv4Header header; header.SetDestination (daddr); header.SetProtocol (PROT_NUMBER); @@ -372,8 +370,6 @@ TcpL4Protocol::SendPacket (Ptr packet, const TcpHeader &outgoing, m_node->GetObject (); if (ipv4 != 0) { - // XXX We've already performed the route lookup in TcpSocketImpl - // should be cached. Ipv4Header header; header.SetDestination (daddr); header.SetProtocol (PROT_NUMBER); diff --git a/src/internet-stack/tcp-l4-protocol.h b/src/internet-stack/tcp-l4-protocol.h index cf381ff30..bd650bd8c 100644 --- a/src/internet-stack/tcp-l4-protocol.h +++ b/src/internet-stack/tcp-l4-protocol.h @@ -65,7 +65,7 @@ public: virtual int GetProtocolNumber (void) const; /** - * \return A smart Socket pointer to a TcpSocketImpl, allocated by this instance + * \return A smart Socket pointer to a TcpSocket allocated by this instance * of the TCP protocol */ Ptr CreateSocket (void); @@ -80,10 +80,6 @@ public: void DeAllocate (Ipv4EndPoint *endPoint); -// // called by TcpSocketImpl. -// bool Connect (const Ipv4Address& saddr, const Ipv4Address& daddr, -// uint16_t sport, uint16_t dport); - /** * \brief Send a packet via TCP * \param packet The packet to send diff --git a/src/internet-stack/tcp-socket-base.cc b/src/internet-stack/tcp-socket-base.cc index c767fce5e..7fc4173e4 100644 --- a/src/internet-stack/tcp-socket-base.cc +++ b/src/internet-stack/tcp-socket-base.cc @@ -1270,7 +1270,7 @@ TcpSocketBase::SendPendingData (bool withAck) if (m_txBuffer.Size () == 0) return false; // Nothing to send if (m_endPoint == 0) { - NS_LOG_INFO ("TcpSocketImpl::SendPendingData: No endpoint; m_shutdownSend=" << m_shutdownSend); + NS_LOG_INFO ("TcpSocketBase::SendPendingData: No endpoint; m_shutdownSend=" << m_shutdownSend); return false; // Is this the right way to handle this condition? } uint32_t nPacketsSent = 0; diff --git a/src/internet-stack/tcp-socket-factory-impl.h b/src/internet-stack/tcp-socket-factory-impl.h index b459e4ac8..d0c2b3a11 100644 --- a/src/internet-stack/tcp-socket-factory-impl.h +++ b/src/internet-stack/tcp-socket-factory-impl.h @@ -31,13 +31,7 @@ class TcpL4Protocol; * \ingroup internetStack * \defgroup tcp Tcp * - * The TCP code in ns3's internet stack is ported from the - * - * Georgia Tech Network Simulator (GTNetS). - * - * Most of the logic is in class ns3::TcpSocketImpl. - * This class serves to create sockets of the TcpSocketImpl - * type. That is, it creates sockets which use the GTNetS Tahoe code. + * This class serves to create sockets of the TcpSocketBase type. */ /**