MsQuicListenerOptions Class

The options of a MsQuicListener.

public sealed class MsQuicListenerOptions

Constructors

NameDescription
MsQuicListenerOptions()

MsQuicListenerOptions()

MsQuicListenerOptions.cs
public MsQuicListenerOptions()

No documentation is available.

Properties

NameDescription
ApplicationProtocolsGets the application protocols (ALPN) the listener accepts.
ConnectionOptionsCallbackGets or sets the function that returns the options of a new connection, from the TLS client hello (server name). The configuration of each returned instance is cached: return the same instance for the same options.
ListenBacklogGets or sets the number of connections that can wait for MsQuicListener.AcceptConnectionAsync. The default is 512.
ListenEndPointGets or sets the address to listen on. Port 0 picks a free port; IPAddress.IPv6Any listens on IPv4 and IPv6.

ApplicationProtocols

MsQuicListenerOptions.cs

Gets the application protocols (ALPN) the listener accepts.

public IList<SslApplicationProtocol> ApplicationProtocols { get; }

ConnectionOptionsCallback

MsQuicListenerOptions.cs

Gets or sets the function that returns the options of a new connection, from the TLS client hello (server name). The configuration of each returned instance is cached: return the same instance for the same options.

public Func<SslClientHelloInfo, CancellationToken, ValueTask<MsQuicServerConnectionOptions>>? ConnectionOptionsCallback { get; set; }

Gets or sets the number of connections that can wait for MsQuicListener.AcceptConnectionAsync. The default is 512.

public int ListenBacklog { get; set; }

Property value

int

Gets or sets the address to listen on. Port 0 picks a free port; IPAddress.IPv6Any listens on IPv4 and IPv6.

public IPEndPoint ListenEndPoint { get; set; }

Property value

IPEndPoint