summaryrefslogtreecommitdiff
path: root/wrappers/python/src/main.py
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-07-15 14:29:29 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-07-15 14:29:29 +0200
commit28ef64c0721e00780a6276cee33af259c7752c39 (patch)
tree11a23fd70710eb0ad8ae5f53d2196c051a92e360 /wrappers/python/src/main.py
parent4067d4d8a476797d0e62b5f5f890cbccf7c8d67c (diff)
FSM + State + Python: Add a connecting state and improve back transitions
Diffstat (limited to 'wrappers/python/src/main.py')
-rw-r--r--wrappers/python/src/main.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/wrappers/python/src/main.py b/wrappers/python/src/main.py
index 84be0ab..008973d 100644
--- a/wrappers/python/src/main.py
+++ b/wrappers/python/src/main.py
@@ -144,6 +144,12 @@ class EduVPN(object):
if connect_err:
raise Exception(connect_err)
+ def set_connecting(self) -> None:
+ connecting_err = self.go_function(lib.SetConnecting)
+
+ if connecting_err:
+ raise Exception(connecting_err)
+
def set_disconnected(self) -> None:
disconnect_err = self.go_function(lib.SetDisconnected)