Apply patch to fix bug 363

This commit is contained in:
Craig Dowell
2008-10-23 11:24:52 -07:00
parent 012433cf91
commit 383c4d9df5
2 changed files with 2 additions and 8 deletions

View File

@@ -71,12 +71,11 @@ Socket::SetAcceptCallback (
m_newConnectionCreated = newConnectionCreated;
}
bool
void
Socket::SetDataSentCallback (Callback<void, Ptr<Socket>, uint32_t> dataSent)
{
NS_LOG_FUNCTION_NOARGS ();
m_dataSent = dataSent;
return true;
}
void

View File

@@ -141,13 +141,8 @@ public:
* \param dataSent Callback for the event that data is sent from the
* underlying transport protocol. This callback is passed a
* pointer to the socket, and the number of bytes sent.
* \returns whether or not this socket supports this callback. Note
* that this is a non-standard socket call. Some socket
* implementations in ns-3 may not support this call, so the
* user should check this return value to confirm that the
* callback is supported.
*/
bool SetDataSentCallback (Callback<void, Ptr<Socket>,
void SetDataSentCallback (Callback<void, Ptr<Socket>,
uint32_t> dataSent);
/**
* \brief Notify application when space in transmit buffer is added