Table of Contents

Interface IQuicServer

Namespace
VpnHood.Net.Quic.Abstractions
Assembly
VpnHood.Net.Quic.Abstractions.dll

Server-side QUIC listener factory. Creates listeners bound to the requested endpoint.

public interface IQuicServer

Methods

ListenAsync(QuicListenerOptions, CancellationToken)

Creates a listener on the endpoint the options name and starts accepting connections.

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.