how i can access FTP server in C ??
somebody was used something like this before ??
Printable View
how i can access FTP server in C ??
somebody was used something like this before ??
Quick answer
Long answerCode:system("ftp path.to.site.com
Goto RFC Editor and find the relevant RFCs which describe the FTP protocol.
The use the network API calls (send, recv etc) to connect to a site and engage in a dialog with the FTP server at the other end, as outlined in the RFCs.
I found " ftplib-3.1 ". I think i have the anwers to my questions. Anyway, thanks.
(RFC have the anwers too, but is too more complicated) =)
Actually RFC is the answer. It draws out what the standard is at this time. It is what the developers of ftplib-3.1 used.
Heh - medium answer
Find a library which does some of the hard work for you, and gives you an API with things like fetch_file()
Yes but a lot of times the medium answer is the best answer :)
I could try to write my own code for multithreading...or I could use pthreads.
I'd read the RFC enough to get an understanding of what is happening but use the library to safe your hair :)