Primeira aula de sockets com configuração do cliente

This commit is contained in:
Simon Gonçalves Costa
2026-04-10 21:35:09 -03:00
parent 6723e01b20
commit bcd4801dfc
2 changed files with 5 additions and 3 deletions
+2
View File
@@ -7,6 +7,8 @@ servidor = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
#Estabelecer vinculo com endereço e uma porta
servidor.bind(("127.0.0.1",3000))
print("Servidor inicializando...")
#Começa a ouvir tentativas de conexão
servidor.listen()