Client server communication over tcp