Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

FTP server

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
I was born with webbed fish toes. This tiny ad is my only friend:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic