using System;
using System.Net;
using System.Threading;
using System.Net.Sockets;
using System.Threading.Tasks;

using FilterAPI.Networking;

namespace FilterManager.ManagerNetworking
{
    internal class ManagerListener : Listener
    {
        public ManagerListener()
            : base(IPAddress.Parse(Program.Auth.ConfigValues["ManagerBindIP"]), 50000, Convert.ToInt32(Program.Auth.ConfigValues["ManagerBindPort"])) { Accept(); }

        public override void NewSocket(Socket AcceptedSocket, IPEndPoint AcceptedEndPoint) { ManagerClient NewManager = new ManagerClient(AcceptedSocket, AcceptedEndPoint); }
    }
}
