示例#1
0
        static void Main()
        {
            Console.Title = "[Guild Wars 2] {Gate Server}";

            log4net.Config.XmlConfigurator.Configure();


            #region Load engines & services

            AuthEngine =
                (IGtSAuthEngine)
                Assembly.LoadFrom("Engines//GateServer.AuthEngine.dll").CreateInstance(
                    "GateServer.AuthEngine.AuthEngine");

            NetworkEngine =
                (IGtSNetworkEngine)
                Assembly.LoadFrom("Engines//GateServer.NetworkEngine.dll").CreateInstance(
                    "GateServer.NetworkEngine.NetworkEngine");

            //DatabaseService = new DatabaseService(Database.Default.MySql_User, Database.Default.MySql_Password,
            //                                      Database.Default.MySql_Host, Database.Default.MySql_Database,
            //                                      Database.Default.MySql_Port);

            #endregion

// ReSharper disable PossibleNullReferenceException
            NetworkEngine.StartTcpServer(6600);
// ReSharper restore PossibleNullReferenceException



            ShutdownSemaphore.WaitOne();
        }
示例#2
0
        static void Main()
        {
            Console.Title = "GateServer";

            NetworkEngine engine = new NetworkEngine();

            engine.StartTcpServer(6600);

            Console.WriteLine("Server started on port 6600");

            ShutdownSemaphore.WaitOne();
        }