From 383c4d9df5f2abe68d16f71b2d23a89f66c87ed7 Mon Sep 17 00:00:00 2001 From: Craig Dowell Date: Thu, 23 Oct 2008 11:24:52 -0700 Subject: [PATCH] Apply patch to fix bug 363 --- src/node/socket.cc | 3 +-- src/node/socket.h | 7 +------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/node/socket.cc b/src/node/socket.cc index 7d1e7a147..c7f9511e5 100644 --- a/src/node/socket.cc +++ b/src/node/socket.cc @@ -71,12 +71,11 @@ Socket::SetAcceptCallback ( m_newConnectionCreated = newConnectionCreated; } -bool +void Socket::SetDataSentCallback (Callback, uint32_t> dataSent) { NS_LOG_FUNCTION_NOARGS (); m_dataSent = dataSent; - return true; } void diff --git a/src/node/socket.h b/src/node/socket.h index e05740753..1c4a20ddf 100644 --- a/src/node/socket.h +++ b/src/node/socket.h @@ -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 SetDataSentCallback (Callback, uint32_t> dataSent); /** * \brief Notify application when space in transmit buffer is added