blocking socket
This commit is contained in:
@@ -12,7 +12,7 @@ localip = '0.0.0.0'
|
|||||||
UDPServerSocket = socket.socket(family=socket.AF_INET, type=socket.SOCK_DGRAM)
|
UDPServerSocket = socket.socket(family=socket.AF_INET, type=socket.SOCK_DGRAM)
|
||||||
|
|
||||||
UDPServerSocket.bind((localip, localport))
|
UDPServerSocket.bind((localip, localport))
|
||||||
UDPServerSocket.setblocking(0)
|
#UDPServerSocket.setblocking(0)
|
||||||
|
|
||||||
print("UDP server up and listening")
|
print("UDP server up and listening")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user