Inheritance: DNS.Server.DnsServer
Ejemplo n.º 1
0
 public void DoWork()
 {
     try
     {
         log_.Info("DNS DoWork -start-");
         dnsServer_ = new HFTDnsServer(ipv4Address_, ipv6Address_);
         dnsServer_.Listen(port_);
         log_.Info("DNS DoWork -end-");
     }
     catch (System.Exception ex)
     {
         log_.Error(
             "Could not start DNS Server on port:" + port_ + "\n" +
             "Did you run from the command line with sudo?\n\n" + ex.ToString());
     }
 }
Ejemplo n.º 2
0
 public void DoWork()
 {
     try
     {
         log_.Info("DNS DoWork -start-");
         dnsServer_ = new HFTDnsServer(ipv4Address_, ipv6Address_);
         dnsServer_.Listen(port_);
         log_.Info("DNS DoWork -end-");
     }
     catch (System.Exception ex)
     {
         log_.Error(
             "Could not start DNS Server on port:" + port_ + "\n" +
             "Did you run from the command line with sudo?\n\n" + ex.ToString());
     }
 }
Ejemplo n.º 3
0
        public void DoWork()
        {
            try
            {
                log_.Info("DNS DoWork -start- port:" + port_);
                dnsServer_ = new HFTDnsServer(ipv4Address_, ipv6Address_);
                dnsServer_.Listen(port_);
                log_.Info("DNS DoWork -end-");
            }
            catch (System.Exception ex)
            {
                string msg =
                    "Could not start DNS Server on port:" + port_ + "\n" +
                    "Did you run from the command line with sudo?\n\n" + ex.ToString();

                if (!HFTGlobalEventEmitter.GetInstance().QueueEvent(HFTGlobalEventType.Error, msg))
                {
                    // No one handled it. Let's do it ourselves.
                    eventProcessor_.QueueEvent(() => {
                        HFTDialog.MessageBox("ERROR", msg);
                    });
                }
            }
        }
        public void DoWork()
        {
            try
            {
                log_.Info("DNS DoWork -start- port:" + port_);
                dnsServer_ = new HFTDnsServer(ipv4Address_, ipv6Address_);
                dnsServer_.Listen(port_);
                log_.Info("DNS DoWork -end-");
            }
            catch (System.Exception ex)
            {
                string msg =
                    "Could not start DNS Server on port:" + port_ + "\n" +
                    "Did you run from the command line with sudo?\n\n" + ex.ToString();

                if (!HFTGlobalEventEmitter.GetInstance().QueueEvent(HFTGlobalEventType.Error, msg))
                {
                    // No one handled it. Let's do it ourselves.
                    eventProcessor_.QueueEvent(() => {
                        HFTDialog.MessageBox("ERROR", msg);
                    });
                }
            }
        }