Re: Using CFSocket to connect
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.