我如何设置FTP连接? [英] How do I set up an FTP connection?

查看:115
本文介绍了我如何设置FTP连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用iPhone-iPad(模拟器)/ Xcode设置FTP连接。到目前为止,我发现我需要使用CFFTP API,但是我没有取得成功。



我浏览过网络,最后看到最多的对我来说,这就是:
http://developer.apple.com/library/ios/#documentation/Networking/Conceptual/CFNetwork/CFFTPTasks/CFFTPTasks.html
和:
O'Reilly网站:
...... oreilly.com/iphone/excerpts/iphone-sdk/network-programming.html b
$ b

但即使如此,起初似乎比较清楚视图。我仍然无法建立工作联系。意思是下载或上传一个示例文件。



我开始的一个问题:模拟器上可能吗?



另一个问题是:
似乎我的回调函数没有在我编写的代码中通过汇总从上述两个文档获得的信息来调用。
发生这种情况的可能原因是什么?



如果您了解一些示例代码或教程,其中介绍了构建FTP连接所需的步骤,并检查它的作品请让我知道。



感谢您的任何帮助。



我强烈建议您查看Apple的示例应用程序 SimpleFTPSample 作为构建使用FTP的应用程序的基础。


I am trying to setup an FTP connection using iPhone-iPad(Simulator)/Xcode. Up to this point I discovered I need to use the CFFTP API, but I have had no success.

I have browsed the net and ended up by following what seemed the most clear to me, that is : http://developer.apple.com/library/ios/#documentation/Networking/Conceptual/CFNetwork/CFFTPTasks/CFFTPTasks.html and : The O'Reilly site : .....oreilly.com/iphone/excerpts/iphone-sdk/network-programming.html

But even though, it seemed relatively clear at first view. I still haven't been able to make a working connection. Meaning download or upload a sample file.

One question I have for start : Is this possible on the Simulator ?

Another question is : It seems that my callback function is not called in the code I wrote by putting together the information I got from the two documents mentioned above. What are the possible reasons for this to happen ?

If you know about some sample code or tutorial showing the steps necessary to build an FTP connection and check that it works please let me know.

Thanks for any help.

解决方案

Without seeing code, it's difficult to comment on what could be causing a problem in your specific application.

I highly recommend looking at Apple's sample application SimpleFTPSample as a basis for building an application that uses FTP.

这篇关于我如何设置FTP连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆