using System;
using System.Net;
using System.Net.Sockets;

using FilterAPI.Networking;

namespace FilterRest.RestNetworking
{
    internal class RestListener : Listener
    {
        public RestListener()
            : base(IPAddress.Parse(Program.Auth.ConfigValues["RestBindIP"]), 100, Convert.ToInt32(Program.Auth.ConfigValues["RestBindPort"])) { Accept(); }

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