title: Writing simple FTP-like client/server app in C++
body: <p>I'm hoping to write a simple FTP-like app, including both the client and the server in a Microsoft environment. I say FTP-like because I won't need to follow FTP protocol, I just want to build a client that can send a directory + file string to a server, and then have that server either send back the contents of the file, or send the file itself. </p>
  
  <p>Right now my pseudo-code is something like this:</p>
  
  <p>FTP Client:
  - open socket 
  - send file string to server
  - other functionality as desired
  - receive response</p>
  
  <p>FTP Server:
  - open socket
  - new thread for every incoming connection
  - receives file string
  - checks to see if file string is in the right format and if the file exists
  - sends response to client to tell if string was valid
  - either open up and read text files, or transfer the file itself
  - send file or contents of file back to client</p>
  
  <p>Does that general skeleton make sense? Is there anything obvious that I might be missing? I was thinking that I might need one socket each for the status and transfer. Any tips or general direction on how to proceed further with this project would be appreciated.</p>