add one construct method of TcpServer