tags:

views:

65

answers:

3

Hi all! I have to implement a kind of FTP server in C++ for a school project. The goal is learn how the FTP works internally.

I'm a lil bit lost in how to start it. I know the FTP Protocol, but I still don't know what can I do to start coding.

Someone can point me a way to start? Some links, libs in C++, etc? Remembering that is a server side implementation.

Thanks in advance! :)

+2  A: 

That's a very big question. Start with a tutorial on socket programming like this one.

Marcelo Cantos
+2  A: 

First off, read the relevant RFCs. Also record a few FTP sessions using something like Wireshark.From there you should get an idea of when messages are sent and what messages are received. You can the try duplicate the functionality to the point where it can do something useful. You will probably need to look at BSD sockets to do the actual network exchange. Good luck.

doron
+1 for reverse engineering using Wireshark
teukkam
A: 

The API you are looking for is probably Winsock on Windows or Sockets on Unix (Linux). That covers all the networking calls you need. If you already know what the protocol looks like, that should get you going.

T.E.D.