Table of Contents

Class IosQuicClientFactory

Namespace
VpnHood.Net.Quic.Ios
Assembly
VpnHood.Net.Quic.Ios.dll

Provides the iOS QUIC client, IosQuicClient.

public class IosQuicClientFactory : IQuicClientFactory
Inheritance
IosQuicClientFactory
Implements
Inherited Members

Constructors

IosQuicClientFactory(Func<int>)

Provides the iOS QUIC client, IosQuicClient.

public IosQuicClientFactory(Func<int> memoryScale)

Parameters

memoryScale Func<int>

Returns the factor the QUIC flow-control credits are multiplied by, read each time a QUIC client is made: 1, or less, for the small baseline; more trades memory for throughput, as the iOS service does with 2 while TCP forwarding is off.

Properties

IsSupported

Gets a value indicating whether Network.framework QUIC is supported: on iOS 15 or later.

public bool IsSupported { get; }

Property Value

bool

Methods

CreateClient()

Creates a QUIC client on Network.framework that advertises small initial flow-control credits: 4 KB per stream and 16 KB per connection, times the memory scale (at least 1). Network.framework grants more credit as it buffers data, so they bound no memory.

public IQuicClient CreateClient()

Returns

IQuicClient

A new IosQuicClient.

Exceptions

NotSupportedException

QUIC is not supported on this platform.