Compact Framework - OpenNetCf.Net FTP Samples?

djdd87 picture djdd87 · Dec 9, 2008 · Viewed 14.9k times · Source

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.

Answer

ctacke picture ctacke · Dec 9, 2008

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.