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

using FilterAPI.Networking;

namespace FilterLauncher.LauncherNetworking
{
    internal class LauncherListener : Listener
    {
        public LauncherListener()
            : base(IPAddress.Parse(Program.Auth.ConfigValues["LauncherBindIP"]), 100, Convert.ToInt32(Program.Auth.ConfigValues["LauncherBindPort"])) { Accept(); }

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