I am trying to write a code that opens an FTP server on my stand-alone so I could copy file from it to a client in another computer and the opposite, but I am very new to server side programming and don't understand how.
I got the Apache FtpServer but got a little confused with it's use, and am looking for the basic steps of how to use it. Maybe something like:
- do connect command
- login
- do some things....
Let me write a basic example for you, using the very useful Apache FtpServer:
Note that, server-side, you don't have to deal manually with connects, logins, etc: the Ftplet does that for you.
You can, however, add your custom pre[or post]-processing inside the overridden methods of your anonymous inner Ftplet class (when you instantiate it with
new Ftplet(){ ... }
.