예제 #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
 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
        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;
     }
 }