internet: tracing of BytesInFlight inside TcpGeneralTest

This commit is contained in:
Natale Patriciello
2016-02-22 17:09:42 +01:00
parent ad53340b82
commit 843dd56935
2 changed files with 14 additions and 0 deletions

View File

@@ -193,6 +193,8 @@ TcpGeneralTest::DoRun (void)
MakeCallback (&TcpGeneralTest::RxPacketCb, this));
m_senderSocket->TraceConnectWithoutContext ("RTT",
MakeCallback (&TcpGeneralTest::RttTrace, this));
m_senderSocket->TraceConnectWithoutContext ("BytesInFlight",
MakeCallback (&TcpGeneralTest::BytesInFlightTrace, this));
m_remoteAddr = InetSocketAddress (serverAddress, 4477);

View File

@@ -503,6 +503,18 @@ protected:
{
}
/**
* \brief Bytes in flight changes
*
* This applies only for sender socket.
*
* \param oldValue old value
* \param newValue new value
*/
virtual void BytesInFlightTrace (uint32_t oldValue, uint32_t newValue)
{
}
/**
* \brief Socket closed normally
* \param who the socket closed (SENDER or RECEIVER)