CFSocketSendData timeout?
CFSocketSendData timeout?
- Subject: CFSocketSendData timeout?
- From: Avi Drissman <email@hidden>
- Date: Thu, 16 May 2002 14:30:29 -0400
From CFSocket.h:
/* For convenience, a function is provided to send data using the
socket with a timeout.
The timeout will be used only if the specified value is
positive. The address should be left NULL
if the socket is already connected. */
CF_EXPORT CFSocketError CFSocketSendData
(CFSocketRef s, CFDataRef address, CFDataRef data,
CFTimeInterval timeout);
From the appearance of this call, this seems to be a synchronous
blocking call. I call CFSocketSendData with a timeout of 30 seconds,
and if the destination is unreachable, this call returns in 30
seconds. Is that so?
The sample code that I've been seeing uses a timeout of 0. Is that no
timeout in the sense of "waiting forever" or in the synchronous,
nonblocking Yoda sense? ("Send, or do not. There is no try.")
Avi
--
Avi Drissman
email@hidden
Argh! This darn mailserver is trunca
_______________________________________________
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.