Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help regarding ftp server ?

 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • 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
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • 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.
 
Tim Moores
Bartender
Posts: 2803
41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I've told you elsewhere, check out Apache Mina for an open source FTP server written in Java.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic