aboutsummaryrefslogtreecommitdiff
path: root/interact/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'interact/__init__.py')
-rw-r--r--interact/__init__.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/interact/__init__.py b/interact/__init__.py
new file mode 100644
index 0000000..9b5830a
--- /dev/null
+++ b/interact/__init__.py
@@ -0,0 +1,9 @@
+import grpc
+from . import l2cap
+
+GRPC_PORT = 8999
+
+def run(profile: str, interaction_id: str, pts_addr: bytes):
+ channel = grpc.insecure_channel(f'localhost:{GRPC_PORT}')
+ if profile == "L2CAP":
+ l2cap.interact(channel, interaction_id, pts_addr) \ No newline at end of file