31 lines
913 B
C#
31 lines
913 B
C#
// /**
|
|
// * File: HttpsListener.cs
|
|
// * Author: haraldwolff
|
|
// *
|
|
// * This file and it's content is copyrighted by the Author and / or copyright holder.
|
|
// * Any use wihtout proper permission is illegal and may lead to legal actions.
|
|
// *
|
|
// *
|
|
// **/
|
|
using System;
|
|
using ln.types;
|
|
using ln.types.net;
|
|
using ln.http.connections;
|
|
using ln.http.cert;
|
|
namespace ln.http.listener
|
|
{
|
|
public class HttpsListener : HttpListener
|
|
{
|
|
public HttpsListener(int port) : this(IPv6.ANY, port) { }
|
|
public HttpsListener(IPv4 listen, int port) : this((IPv6)listen, port) { }
|
|
public HttpsListener(IPv6 listen, int port) : base(listen, port) { }
|
|
|
|
public CertContainer CertContainer { get; set; } = new CertContainer();
|
|
|
|
public override Connection Accept()
|
|
{
|
|
return new HttpsConnection(this, base.Accept(),CertContainer.SelectCertificate);
|
|
}
|
|
}
|
|
}
|