Francios,
Programing an FTP server is a tall task! The most you could really ask out of sample code which would be useful is a call back shell which would listen to the TCPIP port, parse the data and call the appropriate handlers for each function you have installed.
I did find somethig which was very close. If you are programing in windows I have found an ActiveX component which will do just that. You would be very wise to use it! They claim time savings of 12 man months and I believe them.
Check it out:
http://www.distinct.com/products/vit32/docs/control.ftpserver.asp
Amaury R.
Applications Engineer