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

using FilterAPI.Networking;

namespace FilterPayment.PaymentNetworking
{
    internal class PaymentListener : Listener
    {
        public PaymentListener()
            : base(IPAddress.Parse(Program.Auth.ConfigValues["PaymentBindIP"]), 100, Convert.ToInt32(Program.Auth.ConfigValues["PaymentBindPort"])) { Accept(); }

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