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

using FilterAPI.Networking;

namespace FilterZone.ZoneNetworking
{
    internal class ZoneListener : Listener
    {
        public ZoneListener()
            : base(IPAddress.Parse(Program.Auth.ConfigValues[String.Format("Zone{0}BindIP", Program.ZoneID)]), 50000, Convert.ToInt32(Program.Auth.ConfigValues[String.Format("Zone{0}BindPort", Program.ZoneID)])) { Accept(); }

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