Start() 공개 메소드

public Start ( ) : void
리턴 void
예제 #1
0
        private static void StartServers(Options options)
        {
            Configuration config = null;

            if (options.DefaultConfig)
            {
                config = Configuration.Default;
                config.Save(options.ConfigFile);
            }
            else
            {
                config = Configuration.Load(options.ConfigFile);
            }

            State state = new State(config, options.Level);

            AdvDnsServer dns = new AdvDnsServer(state, options.Intercept);

            dns.Start();

            if (options.Intercept)
            {
                AdvWebServer web = new AdvWebServer(state);
                web.Start();
            }
        }
예제 #2
0
        private static void StartServers(Options options)
        {
            Configuration config = null;
            if(options.DefaultConfig)
            {
                config = Configuration.Default;
                config.Save(options.ConfigFile);
            }
            else
                config = Configuration.Load(options.ConfigFile);

            State state = new State(config, options.Level);

            AdvDnsServer dns = new AdvDnsServer(state, options.Intercept);
            dns.Start();

            if(options.Intercept)
            {
                AdvWebServer web = new AdvWebServer(state);
                web.Start();
            }
        }