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

Re: Using CFSocket to connect


  • Subject: Re: Using CFSocket to connect
  • From: Matt Jarjoura <email@hidden>
  • Date: Mon, 1 Jul 2002 19:23:35 -0400 (EDT)

Try the CFSocketConnectToAddress... it has a field for TimeOuts, i believe
this is a blocking function, unless you have a callback established, but
have yet to use it. It shouldn't block anything after it returns anyway.
Let me know what you find.

--------------------------------
MaTt JaRjOuRa | UMBC
--------------------------------

On Mon, 1 Jul 2002, Mike Laster wrote:

> Date: Mon, 01 Jul 2002 19:11:12 -0400
> From: Mike Laster <email@hidden>
> To: email@hidden
> Subject: Using CFSocket to connect
>
> 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.
_______________________________________________
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: 
 >Using CFSocket to connect (From: Mike Laster <email@hidden>)

  • Prev by Date: Using CFSocket to connect
  • Next by Date: Configuring the serial port
  • Previous by thread: Using CFSocket to connect
  • Next by thread: Re: Using CFSocket to connect
  • Index(es):
    • Date
    • Thread