コード例 #1
0
 public Network(string ipAdress, int port)
 {
     networkCommunication = new NetworkCommunication(ipAdress, port, this);
     if (networkCommunication.ConnectToServer())
         status = "Connected";
     else
         status = "Can't connect to: " + ipAdress + ":" + port;
 }
コード例 #2
0
ファイル: Networkconnect.cs プロジェクト: rene1997/ip2
 public Networkconnect(string ipAdress, int port)
 {
     this.ipAdress = ipAdress;
     this.port = port;
     networkCommunication = new NetworkCommunication(ipAdress, port, this);
     Thread connectionThread = new Thread(new ThreadStart(TryConnecting));
     connectionThread.IsBackground = true;
     connectionThread.Start();
 }
コード例 #3
0
ファイル: Networkconnect.cs プロジェクト: xrgman/Zooi
        public Networkconnect(string ipAdress, int port)
        {
            this.ipAdress        = ipAdress;
            this.port            = port;
            networkCommunication = new NetworkCommunication(ipAdress, port, this);
            Thread connectionThread = new Thread(new ThreadStart(TryConnecting));

            connectionThread.IsBackground = true;
            connectionThread.Start();
        }
コード例 #4
0
ファイル: Network.cs プロジェクト: xrgman/Zooi
 public Network(string ipAdress, int port)
 {
     networkCommunication = new NetworkCommunication(ipAdress, port, this);
     if (networkCommunication.ConnectToServer())
     {
         status = "Connected";
     }
     else
     {
         status = "Can't connect to: " + ipAdress + ":" + port;
     }
 }