Esempio n. 1
0
        static void Main(String[] args)
        {
            try
            {
                Console.Title = "COPS v6 - The Return Of The Legend : AccServer Enhanced";
                Program.WriteHeader();

                if (!Directory.Exists(Program.RootPath + "/Log/"))
                {
                    Directory.CreateDirectory(Program.RootPath + "/Log/");
                }

                // log4net configuration
                XmlConfigurator.ConfigureAndWatch(new FileInfo(Program.RootPath + "/AccServer.config"));

                NetworkMonitor = new NetworkMonitor(5000);
                Server.Run();
            }
            catch (Exception Exc) { Console.WriteLine(Exc); }

            while (true)
            {
                Console.Read();
            }
        }
Esempio n. 2
0
        static void Main(String[] args)
        {
            try
            {
                Thread.CurrentThread.CurrentCulture = new CultureInfo("en-CA", false);

                Console.Title = "COPS v6 - The Return Of The Legend : MsgServer Enhanced";
                Program.WriteHeader();

                if (!Directory.Exists(Program.RootPath + "/Log/"))
                {
                    Directory.CreateDirectory(Program.RootPath + "/Log/");
                }

                // log4net configuration
                XmlConfigurator.ConfigureAndWatch(new FileInfo(Program.RootPath + "/MsgServer.config"));

                NetworkMonitor = new NetworkMonitor(5000);
                Server.Run();
            }
            catch (Exception exc) { sLogger.Fatal(exc); }

            while (true)
            {
                Console.Read();
            }
        }