紧凑框架 - OpenNetCf.Net FTP 示例?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/352214/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Compact Framework - OpenNetCf.Net FTP Samples?
提问by djdd87
I am trying to get the OpenNetCF.Net FTP Components working with my PDA application. I am struggling to get it doing any more than connecting to the server and wondered if anyone knew of any sample code I could use to learn how to use it with?
我正在尝试让 OpenNetCF.Net FTP 组件与我的 PDA 应用程序一起工作。我正在努力让它做更多的事情而不是连接到服务器,想知道是否有人知道我可以用来学习如何使用它的任何示例代码?
I need to be able to download and upload files, as well as determining the download size of any files that I wish to download.
我需要能够下载和上传文件,以及确定我希望下载的任何文件的下载大小。
Thanks in advance.
提前致谢。
采纳答案by djdd87
回答by ctacke
I don't like the classes in the OpenNETCF.Net.FTP namespace (the ones in the Smart Device Framework). They're based on streams just like the full framework version (which is why we did them that way) but I find usage to be confusing (though any desktop FTP sample should work as a basis). I wrote a complete FTP set of classesfrom the RFC but with an object model that I find far more intuitive that is in the OpenNETCF Community Forums. Comes with full source.
我不喜欢 OpenNETCF.Net.FTP 命名空间中的类(智能设备框架中的类)。它们像完整的框架版本一样基于流(这就是我们这样做的原因),但我发现用法令人困惑(尽管任何桌面 FTP 示例都应该作为基础)。我从 RFC 中编写了一组完整的 FTP 类,但使用了一个我发现在 OpenNETCF 社区论坛中更直观的对象模型。带有完整的源代码。