HttpListener Constructor (IPAddress, Int32, X509Certificate, SslProtocols)

HttpServer.dll

Launch HttpListener in SSL mode

Namespace:  HttpServer
Assembly:  HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public HttpListener(
	IPAddress address,
	int port,
	X509Certificate certificate,
	SslProtocols protocol
)
Visual Basic (Declaration)
Public Sub New ( _
	address As IPAddress, _
	port As Integer, _
	certificate As X509Certificate, _
	protocol As SslProtocols _
)
Visual C++
public:
HttpListener(
	IPAddress^ address, 
	int port, 
	X509Certificate^ certificate, 
	SslProtocols protocol
)

Parameters

address
Type: System.Net..::.IPAddress
IP Address to accept connections on
port
Type: System..::.Int32
TCP Port to listen on, default HTTPS port is 443
certificate
Type: System.Security.Cryptography.X509Certificates..::.X509Certificate
Certificate to use
protocol
Type: System.Security.Authentication..::.SslProtocols
which https protocol to use, default is Tls.

See Also