• 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
Is there two streams with CFReadStreamRead happend in two threads?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is there two streams with CFReadStreamRead happend in two threads?


  • Subject: Is there two streams with CFReadStreamRead happend in two threads?
  • From: Chris Gardner <email@hidden>
  • Date: Tue, 19 May 2009 15:27:56 +0800
  • Importance: Normal

Hi,

   Now I have created two threads and want to download files through the method below in each thread:



1. Create the stream using CFReadStreamCreateWithFTPURL()

2. Set up my callbacks wiht CFReadStreamSetClient()

3. Add it to the run-loop wiht CFReadStreamScheduleWithRunLoop()

4. Open the stream with CFRendStreamOpen()

5. Implement CFRunLoopRun()



After done that, I should wait for the first file to be downloaded, then begin to download the second file.



So my question is ... can these two files download simultaneously in two threads?



If anyone know any idea, please tell me and I will apprecite for your help.



Best Regard.

Chris Wu



_________________________________________________________________
Show them the way! Add maps and directions to your party invites.
http://www.microsoft.com/windows/windowslive/products/events.aspx
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Is there two streams with CFReadStreamRead happend in two threads?
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: iPhone text on UIImage not getting displayed on device.
  • Next by Date: Re: Is there two streams with CFReadStreamRead happend in two threads?
  • Previous by thread: Re: iPhone text on UIImage not getting displayed on device.
  • Next by thread: Re: Is there two streams with CFReadStreamRead happend in two threads?
  • Index(es):
    • Date
    • Thread