/// <summary> /// Initializes a new instance of the <see cref="HttpListener"/> class. /// </summary> /// <param name="endpoint">The endpoint.</param> public HttpListener(IPEndPoint endpoint) : this() { _tcpListener = new TcpListenerAdapter(endpoint); }
/// <summary> /// Initializes a new instance of the <see cref="HttpListener"/> class. /// </summary> /// <param name="address">The address.</param> /// <param name="port">The port.</param> public HttpListener(IPAddress address, int port) : this() { LocalEndpoint = new IPEndPoint(address, port); _tcpListener = new TcpListenerAdapter(LocalEndpoint); }