Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

FTP server

 
Gayatri Shende
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am trying to erite a simple FTP server in java. I will use a aweb browser as a FTP client. I am still not sure how to start writing the server code. Can anyone send me link of steps to code or a code is also good. Please help
Thanks
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm sure you're aware that there are FTP servers written in Java out there (like this one), so I'm assuming this is a coding exercise?

If so, you might want to read up on socket communication in Java. The Sun Java Tutorial has a chapter on that, which also includes a simple socket client/server pair. That might be a good starting point, and of course the FTP RFC.
 
Gayatri Shende
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, this is a coding exercise. I wrote a smiple tcp/ip client-server program, a chat server . Do I need to follow the steps of FTP RFC ?

-Gayatri
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, the FTP RFC specifies what requests an FTP client can send, and how an FTP server should respond to them. If you want to call it an "FTP" client/server, then the RFC is what you need to implement (possibly by leaving out a lot of the more advanced features).
 
Always! Wait. Never. Shut up. Look at this tiny ad.
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!