Talk to a server over TCP by sending commands with a line-based protocol