I have list of socket whic is connected to my 'server program'.if One of clients write something I want to send this message to all clients simutaneously but code below not working simutaneously how can I do this in python
for i in range(len(Connection_list)):
tempsoc=soc
if Connection_list[i]==soc:
reply = "me-->" + message+"\n"
tempsoc=soc
else :
reply = "Message from "+ str(addr[0])+ ":"+ str(addr[1])+"-->" + message +"\n"
tempsoc=Connection_list[i]
tempsoc.send(reply.encode('utf-8'))