JGAA offers the source to the now defunct version 2.0 of his WarFTP Daemon. His server is a bit advanced, but it will give you a good idea of how to multithread winsock connections and handle file transfers as a server. You can download the server source here: (URL) may be wrapped. http://war.jgaa.com/support/?cmd=DownloadVersion&ID=27