Bugzilla – Bug 363
Socket::SetDataSentCallback has bool return value
Last modified: 2008-10-23 14:42:35 UTC
that return value is useless. should be removed.
What are you instead suggesting as the behavior? Here is the current rationale: * \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. Or, are you saying that now that Nsc supports it, everyone will?
1) this method is non-virtual and the only implementation of this method returns true unconditionally. Effectively, our implementation is making the return value meaningless. 2) I can't imagine how _anyone_ would be unable to support this callback so, supporting it unconditionally makes sense, so, removing the return value seems like the only logical choice.
Created attachment 268 [details] proposed patch