• 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: CFStream: setting the time out
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFStream: setting the time out


  • Subject: Re: CFStream: setting the time out
  • From: Stephane Sudre <email@hidden>
  • Date: Fri, 9 Jan 2004 17:52:57 +0100

Thanks for the workaround.

On Friday, January 9, 2004, at 05:17 PM, Jeremy Wyld wrote:

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.

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.

References: 
 >Re: CFStream: setting the time out (From: Jeremy Wyld <email@hidden>)

  • Prev by Date: Re: CFStream: setting the time out
  • Next by Date: Re: CFStream: setting the time out
  • Previous by thread: Re: CFStream: setting the time out
  • Next by thread: Re: CFStream: setting the time out
  • Index(es):
    • Date
    • Thread