Exemple #1
0
        private void button1_Click_2(object sender, EventArgs e)
        {
            clsFirewall fw = new clsFirewall();

            fw.OpenFirewallExe("Ariete");
            fw.OpenFirewallPort(666, "udp", "Ariete");
            try
            {
                Utils.StopUdpThread = true;
                Thread th = new Thread(() => Utils.StartListenerUdp(666));
                th.Name = "ListenrUdpThread";
                th.Start();
            }
            catch (Exception ex)
            {
                logger.Info(ex.Message);
            }
        }
 private void button1_Click_2(object sender, EventArgs e)
 {
     clsFirewall fw = new clsFirewall();
     fw.OpenFirewallExe("Ariete");
     fw.OpenFirewallPort(666, "udp", "Ariete");
     try
     {
         Utils.StopUdpThread = true;
         Thread th = new Thread(() => Utils.StartListenerUdp(666));
         th.Name = "ListenrUdpThread";
         th.Start();
     }
     catch (Exception ex)
     {
         logger.Info(ex.Message);
     }
 }