the protocol: send a filename per line over TCP, and the server replies with the filename and its content's hash