Επεξεργασία

Κοινή χρήση μέσω


QuicListener Class

Definition

Represents a listener that listens for incoming QUIC connections. QuicListener can accept multiple Quic connections.

public ref class QuicListener sealed : IAsyncDisposable
public sealed class QuicListener : IAsyncDisposable
type QuicListener = class
    interface IAsyncDisposable
Public NotInheritable Class QuicListener
Implements IAsyncDisposable
Inheritance
QuicListener
Implements

Remarks

Unlike the connection and stream, the lifetime of a QuicListener isn't linked to any of the accepted connections. It can be safely disposed while keeping the accepted connection alive. Calling DisposeAsync() will only cause the listener to stop listening for any other inbound connections.

For QUIC prerequisites and supported operating systems, see Platform dependencies.

Properties

IsSupported

Gets a value that indicates whether QUIC is supported for server scenarios on the current machine.

LocalEndPoint

Gets the actual listening endpoint.

Methods

AcceptConnectionAsync(CancellationToken)

Accepts an inbound QuicConnection.

DisposeAsync()

Stops listening for new connections and releases all resources associated with the listener.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
ListenAsync(QuicListenerOptions, CancellationToken)

Creates a new QuicListener and starts listening for new connections.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

Extension Methods

ConfigureAwait(IAsyncDisposable, Boolean)

Configures how awaits on the tasks returned from an async disposable will be performed.

Applies to

See also