Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFReadStreamRef with timeout



well, thanks
I thought that there is a some property I can set

thanks

On May 28, 2005, at 6:12 AM, Frederick Cheung wrote:


On 28 May 2005, at 06:55, Dmitry Markman wrote:


Hi
how I can set timeout for CFReadStreamRef:
I'd like to make http request with timeout

thanks

(I found that there are some internal constants like _kCFStreamPropertyReadTimeout
but I have no idea how I can use it)




The easiest way for this to use your read stream asynchronously and have also have a timer in the run loop. When the timer fires you know that your timeout period has expired and you can close the stream. I believe there may be an example of this in one of the CFNetwork samples.

Fred


Dmitry Markman

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >CFReadStreamRef with timeout (From: Dmitry Markman <email@hidden>)
 >Re: CFReadStreamRef with timeout (From: Frederick Cheung <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.