• 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: CFNetwork FTP: Renaming Files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFNetwork FTP: Renaming Files


  • Subject: Re: CFNetwork FTP: Renaming Files
  • From: Frederick Cheung <email@hidden>
  • Date: Tue, 13 Jun 2006 21:17:08 +0100


On 13 Jun 2006, at 19:17, Scott Gaston wrote:

There is no supported way to do what you want with CFFTPStream. The
current APIs allow you to upload files, download files, create new
directories, and download directory listings.

Hey Jim,

Thanks for your response. After looking through the headers, I had come to
this conclusion.


I started working on a CFStream solution. I am pretty confident that I can
get the job done with this approach. However, it would be helpful if I
could obtain the control socket (CFSocket or native) from the CFWriteStream
created via CFWriteStreamCreateWithFTPURL. Calling
CFWriteStreamCopyProperty using kCFStreamPropertySocketNativeHandle returns
the data socket (as one would expect).


Even if you can get the socket (perhaps poking around in the source will help you), I imagine you'd end up mightily confusing CFFTP's state engine. Depending on the licensing of your software it might be appropriate for you to modify CFFTPStream to support the extra functionality you require.
Without getting into too much detail, I need to upload the file to one
directory and then move it to another. I want to do this without connecting
to the FTP server multiple times. However, I have not seen a way to supply
a control socket to the CFFTP methods nor obtain one from the CFFTP methods.
The other option is to not use CFFTPStream at all and to create my own data
connection.
That's what I did (although the case was much strong in my case since i needed a lot of other featues

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


References: 
 >Re: CFNetwork FTP: Renaming Files (From: Scott Gaston <email@hidden>)

  • Prev by Date: Re: OSX 10.4 does not support IPv4 multicast routing protocol????
  • Next by Date: Re: OSX 10.4 does not support IPv4 multicast routing protocol????
  • Previous by thread: Re: CFNetwork FTP: Renaming Files
  • Next by thread: Intermittent System Configuration dynamic store DNS problem
  • Index(es):
    • Date
    • Thread