Apply patch to fix bug 363
authorCraig Dowell <craigdo@ee.washington.edu>
Thu, 23 Oct 2008 11:24:52 -0700
changeset 3774 0e11474a0b92
parent 3773 dab0c18b39a0
child 3775 ca168a0544f2
Apply patch to fix bug 363
src/node/socket.cc
src/node/socket.h
--- 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