Upraviť

Zdieľať cez


QuicConnectionOptions Class

Definition

Shared options for both client (outbound) and server (inbound) Quic connections.

public ref class QuicConnectionOptions abstract
public abstract class QuicConnectionOptions
type QuicConnectionOptions = class
Public MustInherit Class QuicConnectionOptions
Inheritance
QuicConnectionOptions
Derived

Properties

DefaultCloseErrorCode

Gets or sets the error code used for CloseAsync(Int64, CancellationToken) when the connection is disposed.

DefaultStreamErrorCode

Gets or sets the error code used when the stream needs to abort the read or write side of the stream internally.

HandshakeTimeout

Gets or sets the upper bound on time when the handshake must complete. If the handshake does not complete in this time, the connection is aborted.

IdleTimeout

Gets or sets the idle timeout for connections. The idle timeout is the time after which the connection will be closed. Default Zero means underlying implementation default idle timeout.

InitialReceiveWindowSizes

Gets or sets the initial receive window sizes for the connection and individual stream types.

KeepAliveInterval

Gets or sets the interval at which keep-alive packets are sent on the connection.

MaxInboundBidirectionalStreams

Gets or sets the maximum number of concurrent bidirectional streams that the remote peer connection can create on an open connection.

MaxInboundUnidirectionalStreams

Gets or sets the maximum number of concurrent unidirectional streams that the remote peer connection can create on an open connection.

StreamCapacityCallback

Optional callback that is invoked when new stream limit is released by the peer. Corresponds to receiving a MAX_STREAMS frame.

The callback values represent increments of stream limits, e.g.: current limit is 10 bidirectional streams, callback arguments notify 5 more additional bidirectional streams => 15 bidirectional streams can be opened in total at the moment.

The initial capacity is reported with the first invocation of the callback that might happen before the QuicConnection instance is handed out via either ConnectAsync(QuicClientConnectionOptions, CancellationToken) or AcceptConnectionAsync(CancellationToken).

Methods

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)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to