Maybe:
sk = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
should instead be:
sk = socket.socket(t, socket.SOCK_DGRAM)
?
Maybe:
sk = socket. socket( socket. AF_INET, socket.SOCK_DGRAM)
should instead be:
sk = socket.socket(t, socket.SOCK_DGRAM)
?