Table of Contents

Enum ClientState

Namespace
VpnHood.Core.Client.Abstractions
Assembly
VpnHood.Core.Client.Abstractions.dll

Specifies the state of a VPN client.

[JsonConverter(typeof(JsonStringEnumFallbackConverter<ClientState>))]
[JsonEnumFallback(ClientState.Connecting)]
public enum ClientState

Fields

None = 0

Not started.

Initializing = 1

Starting.

ValidatingProxies = 2

Checking the proxies it connects through.

FindingReachableServer = 3

Finding a server that answers.

FindingBestServer = 4

Finding the best of the servers that answer.

Connecting = 5

Making the session.

Connected = 6

Connected.

Unstable = 7

Connected, but a request to the server failed: a successful one brings the client back to Connected, and failures past UnstableTimeout make it wait.

Waiting = 8

Paused, as the server was not reached for longer than UnstableTimeout: the device's packets are dropped until AutoWaitTimeout passes, and the next one tries again.

WaitingForAd = 9

Waiting for the ad the session requires.

Disconnecting = 10

Disconnecting.

Disposed = 11

Disposed.

Remarks

In JSON it is a name; a name this version does not know reads as Connecting, a state on the way, in which the app shows progress and lets the person disconnect.