View | Details | Raw Unified | Return to bug 363
Collapse All | Expand All

(-)a/src/node/socket.cc (-2 / +1 lines)
 Lines 71-82    Link Here 
71
  m_newConnectionCreated = newConnectionCreated;
71
  m_newConnectionCreated = newConnectionCreated;
72
}
72
}
73
73
74
bool 
74
void
75
Socket::SetDataSentCallback (Callback<void, Ptr<Socket>, uint32_t> dataSent)
75
Socket::SetDataSentCallback (Callback<void, Ptr<Socket>, uint32_t> dataSent)
76
{
76
{
77
  NS_LOG_FUNCTION_NOARGS ();
77
  NS_LOG_FUNCTION_NOARGS ();
78
  m_dataSent = dataSent;
78
  m_dataSent = dataSent;
79
  return true;
80
}
79
}
81
80
82
void
81
void
(-)a/src/node/socket.h (-6 / +1 lines)
 Lines 141-153    Link Here 
141
   * \param dataSent Callback for the event that data is sent from the
141
   * \param dataSent Callback for the event that data is sent from the
142
   *        underlying transport protocol.  This callback is passed a
142
   *        underlying transport protocol.  This callback is passed a
143
   *        pointer to the socket, and the number of bytes sent.
143
   *        pointer to the socket, and the number of bytes sent.
144
   * \returns whether or not this socket supports this callback.  Note 
145
   *        that this is a non-standard socket call.  Some socket 
146
   *        implementations in ns-3 may not support this call, so the
147
   *        user should check this return value to confirm that the
148
   *        callback is supported.
149
   */
144
   */
150
  bool SetDataSentCallback (Callback<void, Ptr<Socket>, 
145
  void SetDataSentCallback (Callback<void, Ptr<Socket>, 
151
                            uint32_t> dataSent);
146
                            uint32_t> dataSent);
152
  /**
147
  /**
153
   * \brief Notify application when space in transmit buffer is added
148
   * \brief Notify application when space in transmit buffer is added

Return to bug 363