[Ns-developers] NS-3 sockets data sent callback, again

Tom Henderson tomh at tomh.org
Wed Feb 6 09:03:59 PST 2008


>-----Original Message-----
>From: Gustavo Carneiro [mailto:gjcarneiro at gmail.com]
>Sent: Wednesday, February 6, 2008 07:29 AM
>To: 'George Riley'
>Cc: 'ns-developers'
>Subject: Re: [Ns-developers] NS-3 sockets data sent callback, again
>
>On 06/02/2008, George Riley <riley at ece.gatech.edu> wrote:
>>
>> Hi Gustavo,
>> I understand your point.  Why don't we specify two callbacks, one
>> that is called when the sockets "send" would return to the caller
>> (which is what you are asking for) and another one that is called
>> when the data is actually sent by the interface?  I can see a use for
>> both.
>
>
>I can see a use for both too; but if we have to choose one between the two,
>I sure know which one is more useful...

After some brief discussion today, we plan to do what George suggested unless there are other comments:  fix the semantics of SendCallback to match that of asynchronous sockets, fix the underlying implementation to enforce a finite send buffer, and move the existing callback (which is non-standard sockets) to another name such as TransmitCallback and document that it is not a standard sockets call.







More information about the Ns-developers mailing list