Read line by line from client and write it to server.