[tcpServer] Updated to new sockets API