예제 #1
0
        static void Main(string[] args)
        {
            Log2.Initialize("Log2.txt", LogLevel.All, false);
            string ip = Console.ReadLine();

            client.Connect(IPAddress.Parse(ip), 57852);
            sr = client.GetStream();
            Log2.Info("Updating client size...");
            UpdateClientSize();
            new Thread(WaitForIt).Start();
            new Thread(SendPicture).Start();
            Log2.Debug("Systems up!");
            while (true)
            {
                Log2.WriteAway();
            }
        }
예제 #2
0
        static void Main(string[] args)
        {
            Console.Title           = "IW3 Master Server";
            Console.BackgroundColor = ConsoleColor.White;
            Console.Clear();
#if BETA
            Console.ForegroundColor = ConsoleColor.Black;
            Console.WriteLine("WARNING THIS VERSION IS PRETTY BUGGY!");
#endif
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine(GetHeader());
            Log2.Initialize("Log2_Server.txt", LogLevel.All, false);

            ChanllegeServer cSer = new ChanllegeServer();
            cSer.Start();
            WelcomeServer wcmSer = new WelcomeServer();
            wcmSer.Start();
            while (true)
            {
                Log2.WriteAway();
            }
        }