Class QuicListenerOptions
- Namespace
- VpnHood.Net.Quic.Abstractions
- Assembly
- VpnHood.Net.Quic.Abstractions.dll
Options for creating a QUIC listener. Only the parts that vary per VpnHood endpoint are exposed; TLS 1.3, the ALPN token and encryption policy are fixed by the implementation.
public sealed class QuicListenerOptions
- Inheritance
-
QuicListenerOptions
- Inherited Members
Properties
DefaultCloseErrorCode
Gets the application error code sent when a connection is closed without one of its own. The default is 0.
public long DefaultCloseErrorCode { get; init; }
Property Value
DefaultStreamErrorCode
Gets the application error code sent when a stream is aborted without one of its own. The default is 0.
public long DefaultStreamErrorCode { get; init; }
Property Value
IdleTimeout
Gets how long a connection may stay idle before it is closed.
public required TimeSpan IdleTimeout { get; init; }
Property Value
ListenEndPoint
Gets the address and port to listen on. Port 0 lets the system choose one.
public required IPEndPoint ListenEndPoint { get; init; }
Property Value
MaxInboundBidirectionalStreams
Gets the maximum number of bidirectional streams a client may have open on a connection. The default is 100.
public int MaxInboundBidirectionalStreams { get; init; }
Property Value
MaxInboundUnidirectionalStreams
Gets the maximum number of unidirectional streams a client may have open on a connection. The default is 10.
public int MaxInboundUnidirectionalStreams { get; init; }
Property Value
ServerCertificateSelector
Selects the server certificate for the given SNI host name (null = no SNI provided).
public required Func<string?, X509Certificate> ServerCertificateSelector { get; init; }