Table of Contents

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

bool

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

options QuicListenerOptions

The endpoint, limits, timeouts and certificate selection.

cancellationToken CancellationToken

The 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.