Lines 752-762
bool TcpSocket::SendPendingData (bool wi
|
Link Here
|
---|
|
752 |
m_tcp->SendPacket (p, header, |
752 |
m_tcp->SendPacket (p, header, |
753 |
m_endPoint->GetLocalAddress (), |
753 |
m_endPoint->GetLocalAddress (), |
754 |
m_defaultAddress); |
754 |
m_defaultAddress); |
755 |
m_rtt->SentSeq(m_nextTxSequence, sz); // notify the RTT |
755 |
m_rtt->SentSeq(m_nextTxSequence, sz); // notify the RTT |
756 |
NotifyDataSent (p->GetSize () ); // notify the application |
756 |
// notify the application |
757 |
nPacketsSent++; // Count sent this loop |
757 |
Simulator::ScheduleNow(&TcpSocket::NotifyDataSent, this, p->GetSize ()); |
758 |
m_nextTxSequence += sz; // Advance next tx sequence |
758 |
nPacketsSent++; // Count sent this loop |
759 |
m_highTxMark = std::max (m_nextTxSequence, m_highTxMark);// Note the high water mark |
759 |
m_nextTxSequence += sz; // Advance next tx sequence |
|
|
760 |
// Note the high water mark |
761 |
m_highTxMark = std::max (m_nextTxSequence, m_highTxMark); |
760 |
} |
762 |
} |
761 |
NS_LOG_LOGIC ("Sent "<<nPacketsSent<<" packets"); |
763 |
NS_LOG_LOGIC ("Sent "<<nPacketsSent<<" packets"); |
762 |
NS_LOG_LOGIC("RETURN SendPendingData"); |
764 |
NS_LOG_LOGIC("RETURN SendPendingData"); |