HaloOnline.Server.Core.Log.LogListener.LogListener C# (CSharp) Method

LogListener() public method

public LogListener ( int serverPort, int clientPort ) : System
serverPort int
clientPort int
return System
        public LogListener(int serverPort, int clientPort)
        {
            _clientPort = clientPort;
            IPHostEntry ipHostEntry = Dns.GetHostEntry("");
            IPAddress ipAddress = ipHostEntry.AddressList.First(a => a.AddressFamily == AddressFamily.InterNetwork);
            _tcpListener = new TcpListener(new IPEndPoint(ipAddress, serverPort));
            _connections = new Dictionary<int, IConnection>();
        }