Re: [Repost] OTCountFreeBytes? (like OTCountDataBytes but for send)
Re: [Repost] OTCountFreeBytes? (like OTCountDataBytes but for send)
- Subject: Re: [Repost] OTCountFreeBytes? (like OTCountDataBytes but for send)
- From: Mike Kluev <email@hidden>
- Date: Mon, 04 Feb 2002 01:56:13 +0300
Hi Jens,
On 3/2/02 9:09, Jens Bauer <email@hidden> wrote:
>
Not really. The change was because there are other ways of doing network
>
programming under Mac OS X.
>
-For instance, it's easier building a synchronous+blocking "HTTP
>
downloader" than with Open Transport, but making a more advanced program
>
would require some "getting used to" for the BSD sockets.
In this particular example using URLAccess is probably the simplest method.
>
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.
It was new to me that STREAMS infrastructure is not present in
Mac OS X. If something is supported by means of "compatibility
library", (or by means of emulation, etc.), if OS vendor suggests
not to use this something for the new development (other than for
the sake of compatibility with old systems), that means this
something is dying.
Regards,
Mike Kluev