Client and Server code for a restartable file transfer server