Bug 364

Summary: how do I know if Socket::SetSendCallback works ?
Product: ns-3 Reporter: Mathieu Lacage <mathieu.lacage>
Component: networkAssignee: Craig Dowell <craigdo>
Status: RESOLVED FIXED    
Severity: normal CC: gjcarneiro, ns-bugs
Priority: P3    
Version: pre-release   
Hardware: All   
OS: All   
Attachments: proposed patch

Description Mathieu Lacage 2008-09-23 16:31:11 UTC
that callback will be inoperative on udp sockets. How do I know this ?
Comment 1 Gustavo J. A. M. Carneiro 2008-09-24 07:23:28 UTC
Socket::SetSendCallback should be functional for UDP sockets IMHO.  Why would it be hard to implement for UDP sockets?  If the implementation knows no better, just call this callback unconditionally after each Send () (preferably via Simulator::Schedule to avoid recursion).
Comment 2 Tom Henderson 2008-09-25 09:33:27 UTC
I agree with Gustavo and seem to recall we discussed and agreed on this behavior back when the socket API was redone.
Comment 3 Mathieu Lacage 2008-10-20 03:30:45 UTC
Created attachment 270 [details]
proposed patch
Comment 4 Rajib Bhattacharjea 2008-10-27 12:59:19 UTC
changeset 362d7e1c12a6