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

Aborting an FTP Stream


  • Subject: Aborting an FTP Stream
  • From: "Wells, Terry C" <email@hidden>
  • Date: Fri, 25 Feb 2005 14:29:40 -0800
  • Thread-topic: Aborting an FTP Stream

Title: Aborting an FTP Stream

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.

Any thoughts on this one?

Here is some more detail in case it helps or matters:
- I'm running a CFM app as a plugin to Adobe Acrobat
- I'm calling into CFNetwork using the CFBundle glue
- My CFNetwork code is lifted straight from the CFFTPSample.c example code
- I'm *not* calling CFRunLoopRun() from within MySimpleDownload.  I'm returning to Acrobat and relying on the RunLoop of the containing dialog to process the FTP events.  This seems to work fine and keeps the dialog alive at the same time.  If I call CFRunLoopRun() within MySimpleDownload, the dialog does not update or respond to clicks reliably.
- Normal FTP transfers work just fine when they run to completion.
- My problem is that the hosting dialog has a cancel button which can interrupt a transfer mid-stream.  That's when things get ugly.

Thanks again,
Terry

 _______________________________________________
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: Re: SNMP / AirPort
  • Next by Date: Dismal performance of CFFTPCreateParsedResourceListing
  • Previous by thread: Re: SNMP / AirPort
  • Next by thread: Re: Aborting an FTP Stream
  • Index(es):
    • Date
    • Thread