moving files between server and client in c