예제 #1
0
파일: Program.cs 프로젝트: circa94/CoCSharp
        public static void Main(string[] args)
        {
            Console.Title = "CoC# - Proxy";

            var stopwatch = new Stopwatch();
            stopwatch.Start();

            Directory.CreateDirectory("messages");
            Proxy = new CoCProxy();
            Proxy.Start(new IPEndPoint(IPAddress.Any, 9339));

            stopwatch.Stop();

            Console.WriteLine("Done({0}ms)! Listening on *:9339", stopwatch.Elapsed.TotalMilliseconds);
            Thread.Sleep(Timeout.Infinite);
        }
예제 #2
0
        public static void Main(string[] args)
        {
            Console.Title = "CoC# Proxy";
            Console.WriteLine("Starting proxy...");

            Configuration = ProxyConfiguration.LoadConfiguration("proxyConfig.xml");
            if (Configuration.DeleteLogOnStartup)
                File.Delete("packets.log");

            Proxy = new CoCProxy();
            Proxy.ServerAddress = Configuration.ServerAddress;
            Proxy.ServerPort = Configuration.ServerPort;

            Proxy.Start(new IPEndPoint(IPAddress.Any, Configuration.ProxyPort));

            Console.WriteLine("CoC# is running on *:{0}", Configuration.ProxyPort);
            Thread.Sleep(-1);
        }
예제 #3
0
        public static void Main(string[] args)
        {
            Console.Title = "CoC# Proxy";
            Console.WriteLine("Starting proxy...");

            Configuration = ProxyConfiguration.LoadConfiguration("proxyConfig.xml");
            if (Configuration.DeleteLogOnStartup)
            {
                File.Delete("packets.log");
            }

            Proxy = new CoCProxy();
            Proxy.ServerAddress = Configuration.ServerAddress;
            Proxy.ServerPort    = Configuration.ServerPort;

            Proxy.Start(new IPEndPoint(IPAddress.Any, Configuration.ProxyPort));

            Console.WriteLine("CoC# is running on *:{0}", Configuration.ProxyPort);
            Thread.Sleep(-1);
        }