receive a message from the server

This commit is contained in:
ktyl 2023-02-17 21:07:12 +00:00
parent d75885670f
commit a86074f089
1 changed files with 4 additions and 0 deletions

View File

@ -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)