//public ThreadForAdvanceSim(int port,string returnValue, SimCallbackAdvance paCB)
        public ThreadForAdvanceSim(int port, SimCallbackAdvance paCB)
        {
            listionPort = port;
            // echoValue = returnValue;
            retCallback = paCB;

            //string server = null;
            //server = Dns.GetHostName();

            //IPHostEntry heserver = Dns.GetHostEntry(server);
            //foreach (IPAddress localAddr in heserver.AddressList)
            //{
            //  tcpListener = new TcpListener(localAddr, port);
            //  tcpClient = new TcpClient();
            //}
            tcpListener = new TcpListener(IPAddress.Any, port);
            tcpClient   = new TcpClient();
            //IPAddress localAddr = IPAddress.Parse("10.112.37.135");
            //  IPAddress localAddr = IPAddress.Parse("127.0.0.1");

            //tcpListener = new TcpListener(localAddr, port);
            //tcpClient = new TcpClient();
        }
        //public ThreadForAdvanceSim(int port,string returnValue, SimCallbackAdvance paCB)
        public ThreadForAdvanceSim(int port, SimCallbackAdvance paCB)
        {
            listionPort = port;
            // echoValue = returnValue;
            retCallback = paCB;

            //string server = null;
            //server = Dns.GetHostName();

            //IPHostEntry heserver = Dns.GetHostEntry(server);
            //foreach (IPAddress localAddr in heserver.AddressList)
            //{
            //  tcpListener = new TcpListener(localAddr, port);
            //  tcpClient = new TcpClient();
            //}
            tcpListener = new TcpListener(IPAddress.Any, port);
            tcpClient = new TcpClient();
            //IPAddress localAddr = IPAddress.Parse("10.112.37.135");
            //  IPAddress localAddr = IPAddress.Parse("127.0.0.1");

            //tcpListener = new TcpListener(localAddr, port);
            //tcpClient = new TcpClient();
        }