Re: CFStream Problem on Jaguar
Re: CFStream Problem on Jaguar
- Subject: Re: CFStream Problem on Jaguar
- From: Becky Willrich <email@hidden>
- Date: Mon, 18 Nov 2002 09:12:01 -0800
One more thought - you are double checking the return value on
CFWriteStreamWrite, right? We don't promise to write out the entire
buffer in a single call.
To answer your question about knowing how much buffer you have
available - there's no way to know for sure, but as I understand it,
you're always guaranteed the difference between the total buffer size
(usually 32K) and whatever the high watermark is set to on the socket.
That's configurable via setsockopt, so you should be able to set it to
your taste.
I'm surprised by the problems you're seeing. iPhoto, for instance,
uses CFWriteStream to upload picture data more or less exactly as
you've described, and we haven't seen any problems there with dropped
bytes, and they use a sizable buffer. I'd be interested in a test case
we could debug against.
REW
_______________________________________________
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.