[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 13:52:17 PDT 2008


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





------- Comment #8 from mathieu.lacage at sophia.inria.fr  2008-03-27 16:52 -------
(In reply to comment #5)
> I agree that it is not really intuitive the way the code now works, as
> exemplified by this test case.  I as a user would expect that if I used a
> socket and passed data to it, I could delete my local reference to the socket
> afterwards, just as I could lose reference to the descriptor in real code
> without destroying the underlying packet.

Sure, however, what is happening in the real world is that it is your
application which keeps track of open file descriptors and the kernel frees
them when the application dies. The problem here, is that you have associate
your socket to a user context to be able to destroy it when the user context
disapears and the user context in ns3 is the Application class.


-- 
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