[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 09:55:37 PDT 2008


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





------- Comment #3 from mathieu.lacage at sophia.inria.fr  2008-03-27 12:55 -------
(In reply to comment #2)
> Holding sockets in some class, be it Application or otherwise, is more work
> than needed.  NS-3 can save the programmer work by doing this work by itself,

I understand you feel pretty strongly that this is a user bug which can be
avoided but,

> with little cost.

The memory cost is not "little" so, I am very uneasy about this proposal,
especially since there is another fix, as outlined in my previous comment. I am
also pretty uneasy about this proposed change because I really think that it is
a bug to create a socket, release it, and expect it to stay around while you
run the simulation. 

Furthermore, I have a very hard time to see how your proposal would gracefully
deal with appearing and disappearing sockets: how can you (user) make sure that
a socket is really released ? Do you have to go into the array attached to the
node and remove it from there ? _that_ sounds really bad.


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