forked from beau/relab
Update 'server/NetGenieSrv.py'
This commit is contained in:
parent
39fc9cd8a9
commit
2bda1c27c4
@ -7,6 +7,13 @@ def init_socket():
|
||||
# Create a TCP/IP socket
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
|
||||
# Bind the socket to the port
|
||||
server_address = ('localhost', 8000)
|
||||
sock.bind(server_address)
|
||||
|
||||
# Listen for incoming connections
|
||||
sock.listen(1)
|
||||
|
||||
def check_bridge_socket():
|
||||
evt = None
|
||||
return evt
|
||||
|
Loading…
x
Reference in New Issue
Block a user