Example #1
0
        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);
        }
Example #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);
        }
Example #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);
        }