Re(2): [Repost] OTCountFreeBytes? (like OTCountDataBytes but for send)
Re(2): [Repost] OTCountFreeBytes? (like OTCountDataBytes but for send)
- Subject: Re(2): [Repost] OTCountFreeBytes? (like OTCountDataBytes but for send)
- From: Jens Bauer <email@hidden>
- Date: Mon, 4 Feb 2002 00:33:06 +0100
Hi Mike,
On Mon, 4 Feb, 2002, Mike Kluev <email@hidden> wrote:
>
On 3/2/02 9:09, Jens Bauer <email@hidden> wrote:
>
> Ehm, if you send 0 bytes, why call OTSnd ? :)
>
> -Would you ever need to send 0 bytes with T_MORE set ? :)
>
>
Some providers allow to send zero-length packet. This is usefull
>
when you've already sent packet with T_MORE flag set, but it
>
happend that you have no more data to send, so you send another
>
zero-length packet with T_MORE flag cleared. Or you just want
>
T_DATA to happen at remote side without sending any data. Agree,
>
this is rarely used.
I never thought of that. Ofcourse, you should try designing your
application so it doesn't need that; if possible. I never needed to send
zero-length packages myself, so unfortunately, I don't have the answer to
this question.
About OT vs. BSD sockets, I'd really hate using fork() to replace the
notifier. I don't believe it would be possible to make threads run faster
than an interrupt. (My personal opinion; I grew up with interrupts)
Love,
Jens
--
Jens Bauer, Faster Software.