• 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
Using CFSocket to connect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using CFSocket to connect


  • Subject: Using CFSocket to connect
  • From: Mike Laster <email@hidden>
  • Date: Mon, 01 Jul 2002 19:11:12 -0400

How do I connect with a timeout in the CFSocket world?

I'm trying to get functionality to connect to a given host:port successfully
in <= 1 second or give up. The default connect() behavior will wait up to 2
minutes before returning a failure, which introduces unacceptable delays.

I currently use select() with a short timeout on a non-blocking socket.
This works, but it leaves me blocking inside of a select() call instead of
inside of a CFRunLoop like I would like.
_______________________________________________
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: Using CFSocket to connect
      • From: Becky Willrich <email@hidden>
    • Re: Using CFSocket to connect
      • From: Matt Jarjoura <email@hidden>
  • Next by Date: Re: Using CFSocket to connect
  • Next by thread: Re: Using CFSocket to connect
  • Index(es):
    • Date
    • Thread