Python - Receiving data from all sockets -


i've run problem working on voting system python socket module.

is there way server socket receive data client sockets without specifying one? if not, how using else?

def recv_all():     messages = {}     sock in self.sockets:         data = sock.recv(4095)         if data:            messages[sock] = data      return messages 

Comments