예제 #1
0
        public GameServer(Configuration config, Resources.ResourceManager resManager, Commands.CommandManager commandManager, NPClient platformClient)
        {
            m_configuration = config;

            commandManager.SetGameServer(this);
            CommandManager = commandManager;

            m_resourceManager = resManager;
            m_resourceManager.SetGameServer(this);

            m_platformClient = platformClient;

            var dnsEntry = Dns.GetHostEntry("refint.org");

            foreach (var address in dnsEntry.AddressList)
            {
                if (address.AddressFamily == AddressFamily.InterNetwork)
                {
                    m_serverList = new IPEndPoint(address, 30110);
                }
            }

            UseAsync = true;
        }