[Ns-bugs] [Bug 117] provide char pointer-based API extension to socket

bugzilla-daemon@nsnam-www.ece.gatech.edu bugzilla-daemon at nsnam-www.ece.gatech.edu
Wed Dec 5 09:04:00 PST 2007


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





------- Comment #2 from mathieu.lacage at sophia.inria.fr  2007-12-05 12:04 -------
(In reply to comment #1)
> Created an attachment (id=93)
 --> (http://www.nsnam.org/bugzilla/attachment.cgi?id=93&action=view) [edit]
> Patch to add uint8_t* based Send API to all sockets
> 
> This is a simple non-virtual public API in the socket base class that creates a
> Packet with the contents of a uint8_t* style buffer, the forwards this along to
> the pure virtual Send(Packet p).

I thought you wanted to support the idiom of calling the Send method with a
zero pointer: maybe you should add the necessary if statement to the Send
method ? Also, it would be nice to add the necessary doxygen to this new method
which documents the bahavior in case the pointer is zero and/or the size is
zero.


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