• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CFReadStreamCopyProperty() returns NULL?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >CFReadStreamCopyProperty() returns NULL? (From: John Michael Zorko <email@hidden>)
 >Re: CFReadStreamCopyProperty() returns NULL? (From: Frederick Cheung <email@hidden>)

  • Prev by Date: Re: broadcast address of a network interface
  • Next by Date: Re: broadcast address of a network interface
  • Previous by thread: Re: CFReadStreamCopyProperty() returns NULL?
  • Next by thread: When is it safe to enable filtering in an NKE?
  • Index(es):
    • Date
    • Thread