[Ns-developers] ns3 TCP merge candidate

Mathieu Lacage mathieu.lacage at sophia.inria.fr
Thu Jan 24 03:59:05 PST 2008


On Thu, 2008-01-24 at 11:46 +0000, Gustavo Carneiro wrote:

> The correct design is IMHO to make applications only handle "fully
> prepared" sockets, i.e. it should be the resonsibility of the client
> code to create and connect the socket prior to handling it to the
> Application class.  Then  the Application can just use SendTo (),
> which works equally well for both stream and datagram sockets
> (right?). 

SendTo on a stream socket should be prepared to the fact that a stream
socket might send only part of the input packet so, it should be
prepared to re-invoke SendTo with a part of the input packet.

regards,
Mathieu


More information about the Ns-developers mailing list