// Copyright © 2017-2018 Atomic Software, LLC. All Rights Reserved.
// See LICENSE.md for full license information.

using Atom.Core;
using Atom.Core.Networking;

namespace Atom.LoginServer
{
    internal class LoginServer : Server
    {
        /// <summary>
        /// Listens for remote connections made to the server.
        /// </summary>
        public Listener RemoteListener { get; private set; }
        /// <summary>
        /// Listens for local connections made to the server.
        /// </summary>
        public Listener LocalListener { get; private set; }

        protected override void PerformStartActions()
        {
            RemoteListener = new Listener(Config.GetString("NET", "RemoteListenIP"), Config.GetInt32("NET", "RemoteListenPort"));
            LocalListener = new Listener(Config.GetString("NET", "LocalListenIP"), Config.GetInt32("NET", "LocalListenPort"));
        }
    }
}
