• 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: CFSocketSendData question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFSocketSendData question


  • Subject: Re: CFSocketSendData question
  • From: Becky Willrich <email@hidden>
  • Date: Wed, 4 Dec 2002 15:25:13 -0800

However, if I use a timeout of 1, the send returns a second later, but it returns kCFSocketSuccess, when I would have expected to get kCFSocketTimeout.

Have you turned off the socket's internal buffering? A successful send just means the data made it to the kernel's buffer, it doesn't guarantee the kernel successfully transmitted to the remote side (just as a successful write to a file doesn't mean the bytes you wrote made it all the way to the disk yet - the kernel gets to schedule that task as it pleases). There's a sockopt to turn that behavior off (and force data delivery live), but even then, all you know is that the kernel sent the data over the wire, not that the receiving end got it.

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: 
 >CFSocketSendData question (From: Mike Laster <email@hidden>)

  • Prev by Date: Re: CFSocketSendData question
  • Next by Date: Re: macnetworkprog digest, Vol 3 #290 - 4 msgs
  • Previous by thread: Re: CFSocketSendData question
  • Next by thread: Re: macnetworkprog digest, Vol 3 #290 - 4 msgs
  • Index(es):
    • Date
    • Thread