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 = 0Not started.
Initializing = 1Starting.
ValidatingProxies = 2Checking the proxies it connects through.
FindingReachableServer = 3Finding a server that answers.
FindingBestServer = 4Finding the best of the servers that answer.
Connecting = 5Making the session.
Connected = 6Connected.
Unstable = 7Connected, but a request to the server failed: a successful one brings the client back to Connected, and failures past UnstableTimeout make it wait.
Waiting = 8Paused, 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 = 9Waiting for the ad the session requires.
Disconnecting = 10Disconnecting.
Disposed = 11Disposed.
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.