Skip to content
Snippets Groups Projects
Commit d5faa80a authored by Stefano Borini's avatar Stefano Borini
Browse files

Fixed server to match new client

parent 09674277
No related branches found
No related tags found
1 merge request!79Deliver notification info
......@@ -25,11 +25,11 @@ while True:
if sync_socket in events:
data = sync_socket.recv_string()
print("received ", data)
if data == "HELLO 1":
sync_socket.send_string("HELLO 1")
if data.startswith("HELLO\n"):
sync_socket.send_string(data)
state = RECEIVING
elif data == "GOODBYE 1":
sync_socket.send_string("GOODBYE 1")
elif data.startswith("GOODBYE\n"):
sync_socket.send_string(data)
state = WAITING
else:
print("unknown request", data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment