Last active
May 14, 2020 20:48
-
-
Save ahwelp/59b224db0d9e7abeeeae3bc2d5e26d23 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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