blocking socket
This commit is contained in:
parent
b7916ed4c8
commit
f96cb16268
@ -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")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user