Hack Forums
[C] C++ FTP Client - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C] C++ FTP Client (/showthread.php?tid=5924143)



C++ FTP Client - ApexLead - Dec 30, 2018

Hello everyone,
I want to make a simple FTP client (For windows) using C++ without using external modules, Ive looked online for quite some time and my understanding is that I can either use sockets or WinSock for this cause, is it really the best way of doing so?
In case it is and in case it isn't, I would really appreciate a little guidance on how to start coding such thing ✌

P.S - Using Windows' FTP is not an option at this time, and I'm new to CPP programming so elaborations are appreciated :)


RE: C++ FTP Client - HFDone - Dec 30, 2018

https://github.com/gudipati/FTP-ClientServer


RE: C++ FTP Client - ApexLead - Dec 31, 2018

(Dec 30, 2018 08:52 AM)HFDone Wrote:  https://github.com/gudipati/FTP-ClientServer

I want to write something of my own, and this one also have C libs if I'm not mistaken, can it be done only with C++?


RE: C++ FTP Client - spiderfruit - Dec 31, 2018

(Dec 30, 2018 07:52 AM)ApexLead Wrote:  Hello everyone,
I want to make a simple FTP client (For windows) using C++ without using external modules, Ive looked online for quite some time and my understanding is that I can either use sockets or WinSock for this cause, is it really the best way of doing so?
In case it is and in case it isn't, I would really appreciate a little guidance on how to start coding such thing ✌

P.S - Using Windows' FTP is not an option at this time, and I'm new to CPP programming so elaborations are appreciated :)

IMO WinInet is easier and cleaner, its a wrapper around winsock and heavily documented on msdn.
also check this implementation http://etutorials.org/Programming/Pocket+pc+network+programming/Chapter+2.+WinInet/File+Transfer+Protocol+FTP/


RE: C++ FTP Client - ApexLead - Dec 31, 2018

(Dec 31, 2018 12:57 AM)spiderfruit Wrote:  IMO WinInet is easier and cleaner, its a wrapper around winsock and heavily documented on msdn.
also check this implementation http://etutorials.org/Programming/Pocket+pc+network+programming/Chapter+2.+WinInet/File+Transfer+Protocol+FTP/

Thanks mate, ill have a look!


RE: C++ FTP Client - Rubymine - Jan 1, 2019

You better look at FTP standard , RFC 959.