From a86074f08988985fa6798609e8f78a93a94e1c00 Mon Sep 17 00:00:00 2001 From: ktyl Date: Fri, 17 Feb 2023 21:07:12 +0000 Subject: [PATCH] receive a message from the server --- src/viewer.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/viewer.py b/src/viewer.py index 1a79703..64d4b47 100644 --- a/src/viewer.py +++ b/src/viewer.py @@ -3,4 +3,8 @@ import socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect(("127.0.0.1", 64999)) +recv_limit = 1024 + +received = sock.recv(recv_limit) +print(received)