Re: CFReadStreamCopyProperty() returns NULL?
Re: CFReadStreamCopyProperty() returns NULL?
- Subject: Re: CFReadStreamCopyProperty() returns NULL?
- From: John Michael Zorko <email@hidden>
- Date: Mon, 09 Feb 2009 09:06:07 -0800
Frederick, Jens ...
Sounds like you're calling CFReadStreamCopyProperty too early - You
can only copy the kCFStreamPropertyHTTPResponseHeader once it has
actually received the bytes comprising the header. (calling
CFReadStreamRead as I'm guessing you do later just blocks until
there is data available)
This was exactly the problem -- the read stream was set up async, and
I needed to wait until the callback was called with the bytes
available flag set. Once I did that, things were better -- thanks!
Regards,
John
Falling You - exploring the beauty of voice and sound
http://www.fallingyou.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden