Interface IQuicListener
- Namespace
- VpnHood.Net.Quic.Abstractions
- Assembly
- VpnHood.Net.Quic.Abstractions.dll
A listening QUIC endpoint that accepts inbound connections (server side).
public interface IQuicListener : IAsyncDisposable
- Inherited Members
Properties
LocalEndPoint
Gets the address and port the listener is bound to, with the port the system chose when 0 was asked.
IPEndPoint LocalEndPoint { get; }
Property Value
Methods
AcceptConnectionAsync(CancellationToken)
Waits for the next inbound connection whose TLS handshake has completed.
ValueTask<IQuicConnection> AcceptConnectionAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenThe token to monitor for cancellation requests.
Returns
- ValueTask<IQuicConnection>
A task that represents the asynchronous operation. Its result is the connection; dispose it to close it.