Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            //TcpListener listen = new TcpListener(IPAddress.Parse("127.0.0.1"), 6000);
            //listen.Server.Bind(new IPEndPoint(IPAddress.Any, 6000));
            //listen.Server.Listen(10);
            //listen.Start();


            //Socket listen = new Socket(new IPEndPoint(IPAddress.Any, 6000).AddressFamily, SocketType.Raw, ProtocolType.Tcp);
            //listen.Bind(new IPEndPoint(IPAddress.Any, 6000));
            //listen.Listen(10);
            //listen.Start();

            FTestConnection ftc = new FTestConnection();

            ftc.ShowDialog();
        }
Example #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            FTestConnection frm = new FTestConnection();

            frm.ShowDialog();
        }