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

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.

  • Follow-Ups:
    • Re: CFSocketSendData timeout?
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: Rendevous/Zeroconfig with Carbon CFM
  • Next by Date: Re: CFSocket & CFRunLoop
  • Previous by thread: Re: Rendevous/Zeroconfig with Carbon CFM
  • Next by thread: Re: CFSocketSendData timeout?
  • Index(es):
    • Date
    • Thread