🎉」 init: wtf

This commit is contained in:
2025-09-18 21:10:30 +02:00
commit 4ca182e566
14 changed files with 2430 additions and 0 deletions

View File

@ -0,0 +1,21 @@
import socket
host = 'localhost'
port = 9990
address = (host, port)
server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server_socket.bind((address))
server_socket.listen(5)
print ("Listening for client . . .")
conn, address = server_socket.accept()
print ("Connected to client at ", address)
while True:
try:
output = conn.recv(3001)
if output:
print ("Message received from client:")
print (output)
except:
sys.exit(0)