Class MsQuicServer
- Namespace
- VpnHood.Net.Quic.MsQuic
- Assembly
- VpnHood.Net.Quic.MsQuic.dll
Represents a QUIC server on MsQuic, through .NET's QuicListener, for Windows and Linux.
public sealed class MsQuicServer : IQuicServer
- Inheritance
-
MsQuicServer
- Implements
- Inherited Members
Remarks
Its listeners use TLS 1.3 only and the "h3" ALPN token, ask for no client certificate and check no revocation.
Properties
IsSupported
Gets a value indicating whether MsQuic listeners are supported on this platform.
public static bool IsSupported { get; }
Property Value
Methods
ListenAsync(QuicListenerOptions, CancellationToken)
Creates a listener on the endpoint the options name and starts accepting connections.
public ValueTask<IQuicListener> ListenAsync(QuicListenerOptions options, CancellationToken cancellationToken)
Parameters
optionsQuicListenerOptionsThe endpoint, limits, timeouts and certificate selection.
cancellationTokenCancellationTokenThe token to monitor for cancellation requests.
Returns
- ValueTask<IQuicListener>
A task that represents the asynchronous operation. Its result is the listener; dispose it to stop it.