Hi guys, I'm fairly new to C++, though I have several years of experience with C#.
I've made program with XAML and C++. Part of the program's job is to download several hundred 10mb files from an FTP patch server. I've been using the .NET FtpWebRequest for this task, and it works OK. However.....
I tested downloading the files with FileZilla, which is C++, and I got almost double the speed as my .NET program did. This is no insignificant difference, either. (3 mpbs vs 1.5mbps).
I've concluded that unmanaged C++ is significantly faster than C# (well, I knew that already...) and that I should place the FTP code in a separate C++ executable.... but I'm *really* lost as to how to do this.
I do know what the program needs to do:
- Receive 3 arguments, Host, Remote Path, and Local Path.
- Connect to FTP server anonymously
- Download said file, writing progress to STD out.
- Exit when the transfer completes.
I've looked at several C++ FTP libraries, but I can't seem to get a handle on anything. Can one of you help?
One last thing: I'd start the C++ exe from C#, supplying the arguments, then read the STD out to display progress on the UI.