I am trying to create a dual user game in pygame using sockets. The thing is, when I try to get the data in this line:
message = self.conn.recv(1024)
python hangs until it receives some data. The problem is that this pauses the game loop when the client does not send anything through the socket and causes a black screen. How can I stop recv from doing this?
Thanks in advance
python sockets pygame
Slidon
source share