Re: CFSocketSendData question
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.