• 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: Aborting an FTP Stream
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Aborting an FTP Stream


  • Subject: Re: Aborting an FTP Stream
  • From: Frederick Cheung <email@hidden>
  • Date: Sun, 27 Feb 2005 10:09:08 +0000


On 26 Feb 2005, at 20:06, email@hidden wrote:

Date: Fri, 25 Feb 2005 14:29:40 -0800
From: "Wells, Terry C" <email@hidden>
Subject: Aborting an FTP Stream
To: <email@hidden>
Message-ID:
	<email@hidden>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

"I'm getting so close to having this FTP code running, I can taste it." (Famous last words)

It would appear that the last remaining functional hurdle for me is the ability to abort an FTP transfer.

The problem I'm having is that calling CFReadStreamUnscheduleFromRunLoop() from within the download callback while the transfer is still active causes an access exception.

I haven't been able to locate anything like CFReadStreamAbort() or equivalent in the docs.

I do that in my code and have never had any problems.
Are you calling CFReadStreamSetClient(stream,NULL,NULL,NULL) before unscheduling (and I presume closing and releasing your stream)?
Unscheduling from the run loop doesn't actually cancel anything, the call that will actually tear down stuff is CFReadStreamClose



Fred

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: [ANN] SCExplorer - System Configuration framework dynamic store explorer
  • Next by Date: RE: Aborting an FTP Stream
  • Previous by thread: Aborting an FTP Stream
  • Next by thread: RE: Aborting an FTP Stream
  • Index(es):
    • Date
    • Thread