Exemplo n.º 1
0
 public Network(string ipAdress, int port)
 {
     this.ipAdress = ipAdress;
     this.port = port;
     this.status = "Trying to establish server connection";
     network = new NetworkConnect(this);
     Thread connectionThread = new Thread(new ThreadStart(TryConnecting));
     connectionThread.IsBackground = true;
     connectionThread.Start();
 }
Exemplo n.º 2
0
        public Network(string ipAdress, int port)
        {
            this.ipAdress = ipAdress;
            this.port     = port;
            this.status   = "Trying to establish server connection";
            network       = new NetworkConnect(this);
            Thread connectionThread = new Thread(new ThreadStart(TryConnecting));

            connectionThread.IsBackground = true;
            connectionThread.Start();
        }