示例#1
0
        public Obrada(NetworkStream tok, ServerKlasa formServer)
        {
            this.tok        = tok;
            this.formServer = formServer;
            formater        = new BinaryFormatter();

            ThreadStart ts  = obradaKlijenta;
            Thread      nit = new Thread(ts);

            nit.Start();
        }
示例#2
0
        private void btnPokreni_Click(object sender, EventArgs e)
        {
            server = new ServerKlasa();

            if (server.PokreniServer())
            {
                this.Text = "Server je pokrenut!";
                //MessageBox.Show("Server je pokrenut");
                btnPokreni.Enabled  = false;
                btnZaustavi.Enabled = true;
            }
        }
示例#3
0
 public ServerKlasa(ServerKlasa formServer)
 {
     this.formServer = formServer;
 }