Example #1
0
        public void StartServer()
        {
            string ip   = textBox1.Text;
            int    port = int.Parse(textBox2.Text);

            tcp = new TCPModel(ip, port);
            tcp.Listen();
            button1.Enabled = false;
        }
Example #2
0
 public void KhoiDongServer()
 {
     tcp             = new TCPModel(textBox1.Text, int.Parse(textBox2.Text));
     button1.Enabled = false;
     tcp.Listen();
 }