Commit dbc772b5 authored by Ismail Moumni's avatar Ismail Moumni
Browse files

Json

parent 847cbd3f
Pipeline #625 passed with stages
in 22 seconds
......@@ -17,8 +17,8 @@ __RDOS_Tool__ = []
def server_conn(address, PORT):
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as serv:
serv.bind((address, PORT))
# Listening to 1 CLient
serv.listen()
# Listening to 5 CLients
serv.listen(5)
print("ok")
# accepting the connection from client and getting client IP
conn, addr = serv.accept()
......@@ -33,8 +33,6 @@ def server_conn(address, PORT):
dt_js = json.dumps(send_param_client(__RDOS_Dict__, __RDOS_Tool__))
conn.send(dt_js)
serv.close()
# Function query_valid matches the query send from client side
# with the the parameter dict
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment