Client-server communication over TCP