CFReadStreamGetBuffer doesn't work for HTTP streams?
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.