From 39fc9cd8a96bfaf74ed2586b1581e14fdd870f0a Mon Sep 17 00:00:00 2001 From: Sana147 <14mseeshabib@seecs.edu.pk> Date: Mon, 1 May 2023 23:13:05 +0000 Subject: [PATCH] Update 'server/NetGenieSrv.py' --- server/NetGenieSrv.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/server/NetGenieSrv.py b/server/NetGenieSrv.py index 48eb586..05dd89e 100644 --- a/server/NetGenieSrv.py +++ b/server/NetGenieSrv.py @@ -1,6 +1,13 @@ #!/bin/env python3 -def check_bridge_socket():: +import socket; +import sys; + +def init_socket(): + # Create a TCP/IP socket + sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + +def check_bridge_socket(): evt = None return evt @@ -9,7 +16,6 @@ def handle_bridge_evt(evt): TODO: Whatever bridge events to handle """ - def check_debug_socket(): dbg_evt = None return dbg_evt