Compact Framework - OpenNetCf.Net FTP Samples?

2019-03-16 15:34发布

问题:

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?

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.

回答1:

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 classes from the RFC but with an object model that I find far more intuitive that is in the OpenNETCF Community Forums. Comes with full source.



回答2:

This looks like the answer:

http://community.opennetcf.com/competition/folders/opennetcfnetftp/entry64583.aspx