[Ns-bugs] [Bug 154] Attach sockets to nodes

bugzilla-daemon@nsnam-www.ece.gatech.edu bugzilla-daemon at nsnam-www.ece.gatech.edu
Thu Mar 27 17:58:21 PDT 2008


http://www.nsnam.org/bugzilla/show_bug.cgi?id=154





------- Comment #13 from raj.b at gatech.edu  2008-03-27 20:58 -------
Created an attachment (id=120)
 --> (http://www.nsnam.org/bugzilla/attachment.cgi?id=120&action=view)
Proposed solution

To clarify to Gustavo:

The implementation is as follows:  Instead of having the creator of the
UdpSocket (what you call the factory) maintain a reference to it and consuming
an extra amount of memory, this approach effectively Ref's the socket one more
time to account for the pointer that exists to the socket in the endpoint
callbacks (Ipv4EndPoint::m_rxCallback and m_destroyCallback).  From a reference
counting perspective, I contend this is the right thing to do anyway.

This fix, while somewhat orthogonal to the issue at hand, also happens to solve
the problem.


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Ns-bugs mailing list