Delete Soket_server_test.py

This commit is contained in:
2025-07-08 18:32:58 +02:00
parent 9d76bb3456
commit cde121ced7

View File

@@ -1,15 +0,0 @@
import socket
HOST = 'localhost'
PORT = 12345
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.connect((HOST, PORT))
# Se l'autenticazione è abilitata
s.sendall(b'admin\n')
s.sendall(b'password123\n')
s.sendall(b'status\n') # Invia il comando
data = s.recv(1024)
print(f"Received: {data.decode()}")