snoopy-viewer/src/viewer.py

11 lines
177 B
Python
Raw Normal View History

import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(("127.0.0.1", 64999))
2023-02-17 21:07:12 +00:00
recv_limit = 1024
received = sock.recv(recv_limit)
print(received)