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