MsQuicListenerOptions Class
The options of a MsQuicListener.
public sealed class MsQuicListenerOptionsConstructors
| Name | Description |
|---|---|
| MsQuicListenerOptions() |
MsQuicListenerOptions()
MsQuicListenerOptions.cspublic MsQuicListenerOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| ApplicationProtocols | Gets the application protocols (ALPN) the listener accepts. |
| ConnectionOptionsCallback | 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. |
| ListenBacklog | Gets or sets the number of connections that can wait for MsQuicListener.AcceptConnectionAsync. The default is 512. |
| ListenEndPoint | Gets or sets the address to listen on. Port 0 picks a free port; IPAddress.IPv6Any listens on IPv4 and IPv6. |
ApplicationProtocols
MsQuicListenerOptions.csGets the application protocols (ALPN) the listener accepts.
public IList<SslApplicationProtocol> ApplicationProtocols { get; }Property value
ConnectionOptionsCallback
MsQuicListenerOptions.csGets 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; }ListenBacklog
MsQuicListenerOptions.csGets or sets the number of connections that can wait for MsQuicListener.AcceptConnectionAsync. The default is 512.
public int ListenBacklog { get; set; }Property value
ListenEndPoint
MsQuicListenerOptions.csGets 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; }