c/s communication via TCP socket