Re: Where is CFStream sources or is CFStream APSL?
Re: Where is CFStream sources or is CFStream APSL?
- Subject: Re: Where is CFStream sources or is CFStream APSL?
- From: Roger Persson <email@hidden>
- Date: Mon, 11 Aug 2003 19:52:35 +0200
<email@hidden> wrote:
>
> Is the CFXXXStream APIs released under APSL (Apple Public Source
>
> License) ?
>
>
Nope; sorry.
Actually, the reason I wondered was that I found some pretty good sources
(the wwwlib) at
http://www.w3.org/Library/. It is quite complex; handles
MIME, XML, DTD, LZW compression, you name it -- but of course without
CF-types. On the other hand it was orginated back in the late 80's, so
developers have had some time to incorporate things over the years.
The streams therein can handle data byte per byte as they come. It is simple
and easy to create a new stream, i.e "sub-class" the stream object. AFAIK
this cannot be done on CFStream?
<email@hidden> wrote:
>
>> Why do an implementation like CFSocket poll the select() routine
>
>> instead of
>
>> using interrupts by signals?
>
>
>
> It's not really polling - CFSocket is blocking in select(). The
>
> secondary thread sits idle, blocked in select, until one of the
>
> sockets sees some activity, then it kicks out and signals across to
>
> the interested thread(s).
>
>
>
If by signals you are referring to BSD signals, the reason we don't use
>
them is because they are not thread-safe (another way to say this is
>
that there is very little you can do reliably in a signal handler).
Yeap, I meant BSD signals, at least I think so. So in other words, are you
also saying that Mach sockets will never generate signals from any routines
you call; socket(), bind(), connect(), recv(), snd() et al ?
Sincerely,
Roger P.
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.