• 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

help regarding ftp server ?

 
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i m trying to make an ftp server ..
a ftp server accepts a connection at some port say 7000 check for the user name and password ok fine till now
but if all is working well till now , but how the hell he sends the file to the client when client wants a particular file ?
even bigger question how the ftp server connects through port 21 for sending the files because port 21 is used for ftp in which case the ftpserver will throw an exception saying that port is already binded something like that
hope you got it what i am telling ?
if any one knows typical implementation of ftpserver please let me know
thanks
 
Marshal
Posts: 27214
87
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

naved momin wrote:i m trying to make an ftp server ..



You mean you're trying to write an FTP server in Java? Don't do that.

a ftp server accepts a connection at some port say 7000 check for the user name and password ok fine till now
but if all is working well till now , but how the hell he sends the file to the client when client wants a particular file ?
even bigger question how the ftp server connects through port 21 for sending the files because port 21 is used for ftp in which case the ftpserver will throw an exception saying that port is already binded something like that
hope you got it what i am telling ?



Yes. There is a specification for what FTP servers are supposed to do. Implementers should find that specification, read it, and understand it.

if any one knows typical implementation of ftpserver please let me know



The typical implementation of an FTP server these days is to get an FTP server from somewhere else and install it on the machine where it is supposed to run. I recommend you do that.
 
Saloon Keeper
Posts: 7324
170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As I've told you elsewhere, check out Apache Mina for an open source FTP server written in Java.
 
And inside of my fortune cookie was this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic