Re: CFStream: setting the time out
Re: CFStream: setting the time out
- Subject: Re: CFStream: setting the time out
- From: Christian Weykopf <email@hidden>
- Date: Fri, 9 Jan 2004 18:36:26 +0100
Am 09.01.2004 um 17:17 schrieb Jeremy Wyld:
Currently, the only solution for changing the timeout is to implement
your own timer in conjunction with the asynchronous streams (or
polling streams). When your timer fires, simple close the stream.
What about setsockopt(...) with SO_SNDTIMEO and SO_RCVTIMEO?
Doesn't it work on OS X?
jeremy
On Jan 9, 2004, at 3:26 AM, Stephane Sudre wrote:
Is it possible to change the time out of a CFStream "instance"?
Basically, I'm doing the following thing:
1) Check with SystemConfiguration Framework SCNetwork.h that a
connection looks like to be up and running.
2) If 1) is OK, get a file on a http server via CFStream.
Part 1) is taking care of lack of communication but if you just run
the code and unplug your Ethernet Cable at the same time, the lack of
connection is not seen immediately so Part 2) is run.
The fact is that what looks like to be the CFStream time-out might be
a bit too long. So I was wondering if it was possible to reduce it...
_______________________________________________
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.
--
Christian Weykopf
Meilenstein Mac OS Software
Neue Strasse 5
D-31582 Nienburg
Fax: +49 (0) 5021 91 24 45
<
http://www.meilenstein.de/>
_______________________________________________
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.