A-1 Initial Upload

Uploaded A-1
This commit is contained in:
2026-02-10 14:01:03 -05:00
parent 13e82da9c3
commit e0e6d20961
2 changed files with 153 additions and 0 deletions

27
CLRadio-Reciever.py Normal file
View File

@@ -0,0 +1,27 @@
import socket
def run_server():
print("=" * 80)
print("CLRadio Reciever Version A-1 | by P7MJ")
print("-" * 80)
host = '0.0.0.0' # Listen on all available interfaces
port = 443
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind((host, port))
s.listen(1)
print(f"Listening on {host}:{port}.")
c, addr = s.accept()
print(f"Connection established from {str(addr)}")
while True:
data = c.recv(1024).decode()
if not data:
break
print(f"{str(addr)}: {data}")
# Optional: send a response back
# c.send(data.encode())
c.close()
if __name__ == '__main__':
run_server()