Esempio n. 1
0
        public void Connect()
        {
            string ip = "127.0.0.1";

            tcpForPlayer = new TCPModel(ip, port);
            if (tcpForPlayer.ConnectToServer() == -1)
            {
                return;
            }
            this.Text      = tcpForPlayer.UpdateInformation();
            t              = new Thread(Commmunication);
            t.IsBackground = true;
            t.Start();
            //tcpForOpponent = new TCPModel(ip, port);
            //tcpForOpponent.ConnectToServer();
        }