Re: Looking for a FTP framework
Re: Looking for a FTP framework
- Subject: Re: Looking for a FTP framework
- From: Charles Srstka <email@hidden>
- Date: Tue, 10 Aug 2010 21:32:00 -0500
On Aug 10, 2010, at 6:15 PM, David Alter wrote:
> I'm adding FTP support to a Mac application. It actually needs to support
> SFTP. I need to support upload and downloading. If a connection is dropped I
> need to be able to re-establish a connection and finish the operation.
>
> It looks like there are some choices out there and I wanted to see what
> people where suggesting. Here are the choices I have come across.
>
> 1) I have seen some information about ConnectionKit. It looks like this was
> written back in 2007. The original open source project appears to have
> vanished. However it looks like it was resurrected as a iOS framework.
> Sounds like it was well supported back in 2007. I'm wondering if it is still
> a good solution. I'm thinking changing it to work on the Mac would not be
> that hard to do. Here is where the project is hosted connectionkit -
> Project Hosting on Google Code <http://code.google.com/p/connectionkit/>
>
> 2) Use the CFNetwork APIs. It appears that Apple has some examples to look
> at for this. I thought they might be a good starting point. One is dated
> back to 10.3 days. It looks like a good example but I was unable to make it
> upload a file to my FTP server. That example can be found at
> CFFTPSample<http://developer.apple.com/mac/library/samplecode/CFFTPSample/Introduction/Intro.html#//apple_ref/doc/uid/DTS10003223-Intro-DontLinkElementID_2>
>
> Then Apple has also provided an example for iOS. That one looks good too. I
> was unable to build it because I have not installed the 4.0 SDK. That
> example can be found at
> SimpleFTPSample<http://developer.apple.com/iphone/library/samplecode/SimpleFTPSample/Introduction/Intro.html#//apple_ref/doc/uid/DTS40009243-Intro-DontLinkElementID_2>
>
> 3) Then there is always CURL.
>
> I need to provide a solution for this. The FTP is a very small part of the
> Application. I would like to find something easy to get implemented. I'm
> interested in what other people are doing.
>
> Thank you for the help
> -dave
Since you mention that what you actually need is SFTP, you could look into either libssh or libssh2. They won’t give you regular FTP support, though. If you need that as well, libcurl is probably the easiest way to go. Implementing your own FTP support using CFNetwork would probably not be that hard, but why reinvent the wheel when someone else has already done all the work for you?
Charles_______________________________________________
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