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