• 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
CFReadStreamGetBuffer doesn't work for HTTP streams?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CFReadStreamGetBuffer doesn't work for HTTP streams?


  • Subject: CFReadStreamGetBuffer doesn't work for HTTP streams?
  • From: Tommy Knowlton <email@hidden>
  • Date: Fri, 5 Jul 2002 09:08:28 -0700 (PDT)

On my 10.1.5 development system, I seem to be experiencing that CFReadStreamGetBuffer always writes 0 into its out parameter, numBytesRead. I've tried negative, zero, and positive values for the maxBytesToRead in parameter, all with the same result. I am guarding my callback's kCFStreamEventHasBytesAvailable case with a call to CFReadStreamHasBytesAvailable (because I believe this is a low-cost way to guard against other bugs in CFNetwork), so I "know" there are bytes there before I call CFReadStreamGetBuffer.

Does anyone know any "tricks" to correctly using CFReadStreamGetBytes?

Kind regards,
--Tk!
_______________________________________________
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.

  • Follow-Ups:
    • Re: CFReadStreamGetBuffer doesn't work for HTTP streams?
      • From: Becky Willrich <email@hidden>
  • Prev by Date: Re: Using CFSocket to connect
  • Next by Date: Re: CFSocketRegisterSocketSignature question
  • Previous by thread: Re: CFStream bugs? (was Re: CFNetwork Website)
  • Next by thread: Re: CFReadStreamGetBuffer doesn't work for HTTP streams?
  • Index(es):
    • Date
    • Thread