MsQuicConnectionOptions Class
The options of a QUIC connection, common to the client and the server.
public abstract class MsQuicConnectionOptionsProperties
| Name | Description |
|---|---|
| CongestionControlAlgorithm | Gets or sets the congestion control algorithm. |
| DefaultCloseErrorCode | Gets or sets the error code sent to the peer when the connection is disposed without being closed. |
| DefaultStreamErrorCode | Gets or sets the error code sent to the peer when a stream is disposed without being completed, or when an operation is canceled. |
| EnableDatagrams | Gets or sets a value indicating whether the connection accepts QUIC datagrams (RFC 9221). The peer must enable them too before either side can send one. |
| HandshakeTimeout | Gets or sets the time the handshake can take. TimeSpan.Zero keeps the default of MsQuic (10 seconds). |
| IdleTimeout | Gets or sets the time without activity after which the connection is closed. TimeSpan.Zero keeps the default of MsQuic (30 seconds). |
| KeepAliveInterval | Gets or sets the interval of the keep-alive packets. TimeSpan.Zero disables them. |
| MaxInboundBidirectionalStreams | Gets or sets the number of bidirectional streams the peer can have open at the same time. The default is 100. |
| MaxInboundUnidirectionalStreams | Gets or sets the number of unidirectional streams the peer can have open at the same time. The default is 100. |
| ReceivedDatagramQueueCapacity | Gets or sets the number of received datagrams kept until MsQuicConnection.ReceiveDatagramAsync reads them. When the queue is full, the oldest datagram is dropped. The default is 1024. |
CongestionControlAlgorithm
MsQuicConnectionOptions.csGets or sets the congestion control algorithm.
public MsQuicCongestionControlAlgorithm CongestionControlAlgorithm { get; set; }Property value
DefaultCloseErrorCode
MsQuicConnectionOptions.csDefaultStreamErrorCode
MsQuicConnectionOptions.csEnableDatagrams
MsQuicConnectionOptions.csHandshakeTimeout
MsQuicConnectionOptions.csGets or sets the time the handshake can take. TimeSpan.Zero keeps the default of MsQuic (10 seconds).
public TimeSpan HandshakeTimeout { get; set; }Property value
IdleTimeout
MsQuicConnectionOptions.csGets or sets the time without activity after which the connection is closed. TimeSpan.Zero keeps the default of MsQuic (30 seconds).
public TimeSpan IdleTimeout { get; set; }Property value
KeepAliveInterval
MsQuicConnectionOptions.csGets or sets the interval of the keep-alive packets. TimeSpan.Zero disables them.
public TimeSpan KeepAliveInterval { get; set; }Property value
MaxInboundBidirectionalStreams
MsQuicConnectionOptions.csMaxInboundUnidirectionalStreams
MsQuicConnectionOptions.csReceivedDatagramQueueCapacity
MsQuicConnectionOptions.csGets or sets the number of received datagrams kept until MsQuicConnection.ReceiveDatagramAsync reads them. When the queue is full, the oldest datagram is dropped. The default is 1024.
public int ReceivedDatagramQueueCapacity { get; set; }