tcpServer sample program