--- a/src/node/socket.cc Thu Oct 23 10:57:26 2008 -0700
+++ b/src/node/socket.cc Thu Oct 23 11:24:52 2008 -0700
@@ -71,12 +71,11 @@
m_newConnectionCreated = newConnectionCreated;
}
-bool
+void
Socket::SetDataSentCallback (Callback<void, Ptr<Socket>, uint32_t> dataSent)
{
NS_LOG_FUNCTION_NOARGS ();
m_dataSent = dataSent;
- return true;
}
void
--- a/src/node/socket.h Thu Oct 23 10:57:26 2008 -0700
+++ b/src/node/socket.h Thu Oct 23 11:24:52 2008 -0700
@@ -141,13 +141,8 @@
* \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