Re: TCP connection timeout
Re: TCP connection timeout
- Subject: Re: TCP connection timeout
- From: Jason Linhart <email@hidden>
- Date: Mon, 19 Jan 2004 15:29:08 -0500
On 1/19/04 10:53 AM Justin Walker (email@hidden) wrote:
>
The latter does not provide a way to modify the TCP
>
timeouts.
If you use the BSD network interface, instead of OT, you can time out a
network connection attempt with an alarm. If you are using OT you can use
an async open and then after five seconds, or however long you want to
wait, just stick the endpoint into a queue of endpoints waiting for
timeouts, continue with your program, and then discard it later when it
finally times out and you have a moment to check the queue.
Jason
-----------------
email@hidden
-----------------
Dr. Seuss books . . . can be read and enjoyed on several levels. For
example, 'One Fish Two Fish, Red Fish Blue Fish' can be deconstructed
as a searing indictment of the narrow-minded binary counting system.
-- Peter van der Linden, Expert C Programming, Deep C Secrets
_______________________________________________
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.