• 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: CFStream Problem on Jaguar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: CFStream Problem on Jaguar (From: "Koichiro Mino" <email@hidden>)

  • Prev by Date: Re: Spurious EBADF?
  • Next by Date: Mounting Mac OS X Server Volumes?
  • Previous by thread: Re: CFStream Problem on Jaguar
  • Next by thread: Re: CFStream Problem on Jaguar
  • Index(es):
    • Date
    • Thread