• C

FTP Client

I am looking for sources/code for a simple FTP Client to connect, authenticate, and perform the 'ls' and 'cd' commands!
sporenzaAsked:
Who is Participating?
 
grg99Commented:
Here's the basic idea:

Get the relevant RFC's for FTP.  

Connect to port 21
accept any lines beginning with "100" or "200" series codes
Open up a listening socket on a random port.
inform the server of that port number with the "PORT" commmand.
Send the "ls" command.
Read the data from the random port.
Handle any response codes on the port 21 connection.


Voila!

0
 
sunnycoderCommented:
homework ?
0
 
avizitCommented:
http://lftp.yar.ru/get.html

i doubt anyone is going to paste source code for a ftp client here  

/abhijit/
0
 
sunnycoderCommented:
sporenza,

Your question history does not indicate that you ask homework questions, however we have had exactly same question being asked by students. So please take time to clarify if this is homework question. This will allow us to provide help accordingly. For a homework assignment, you may need more tutorials and help rather than source code while for a professional project, a couple of good links that I have may suffice.

sunnycoder
0
 
fridomCEO/ProgrammerCommented:
why should one want to write such a thing, if one can get prebuild libraries for that?
If it's about socket programming, well fine, then post your code

Friedrich
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.