Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 868
  • Last Modified:

FTP Client

I am looking for sources/code for a simple FTP Client to connect, authenticate, and perform the 'ls' and 'cd' commands!
0
sporenza
Asked:
sporenza
1 Solution
 
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
 
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
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.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now