diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-02-05 17:08:46 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-02-19 14:15:07 +0100 |
| commit | 0568060829ccb059aa203f4ffde19761a5c03e0b (patch) | |
| tree | 82d7df890cde0c4179338af1442b1850543f3ebb /wrappers/python | |
| parent | b7e074506446aec8bd1f0ead062d00885a71f043 (diff) | |
Client FSM + Python: Begin implementing a new state machine
Diffstat (limited to 'wrappers/python')
| -rw-r--r-- | wrappers/python/eduvpn_common/state.py | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/wrappers/python/eduvpn_common/state.py b/wrappers/python/eduvpn_common/state.py index bb6642b..6f2ba72 100644 --- a/wrappers/python/eduvpn_common/state.py +++ b/wrappers/python/eduvpn_common/state.py @@ -14,19 +14,15 @@ StateEnum = IntEnum class State(StateEnum): - # Go states - INITIAL = 0 + DEREGISTERED = 0 MAIN = 1 - ASK_LOCATION = 2 - CHOSEN_LOCATION = 3 - LOADING_SERVER = 4 - CHOSEN_SERVER = 5 - OAUTH_STARTED = 6 - AUTHORIZED = 7 - REQUEST_CONFIG = 8 - ASK_PROFILE = 9 - CHOSEN_PROFILE = 10 - GOT_CONFIG = 11 - CONNECTING = 12 - DISCONNECTING = 13 - CONNECTED = 14 + ADDING_SERVER = 2 + OAUTH_STARTED = 3 + GETTING_CONFIG = 4 + ASK_LOCATION = 5 + ASK_PROFILE = 6 + GOT_CONFIG = 7 + CONNECTING = 8 + CONNECTED = 9 + DISCONNECTING = 10 + DISCONNECTED = 11 |
