Skip to content

Instantly share code, notes, and snippets.

@ahwelp
Last active May 14, 2020 20:48
Show Gist options
  • Save ahwelp/59b224db0d9e7abeeeae3bc2d5e26d23 to your computer and use it in GitHub Desktop.
Save ahwelp/59b224db0d9e7abeeeae3bc2d5e26d23 to your computer and use it in GitHub Desktop.
#Trabalho 2018
#Artur Henrique Welp
import socket
import os
import sys
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.bind( ('0.0.0.0', 9555) )
print ("escutando")
while True:
dados = s.recv(32)
print( dados.decode() )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment