初步实现服务器和终端能连接,并且终端向服务端发起请求并取得响应

developer_wufayuan
wufayuan 3 years ago
parent 3af34c406e
commit 3aa4f82882

@ -27,7 +27,7 @@ class RequestHandler(threading.Thread):
response_binary = response_binary_len_binary + response_binary response_binary = response_binary_len_binary + response_binary
self.client_socket.sendall(response_binary) self.client_socket.sendall(response_binary)
print(f"[RESPONSE] test: {response['test']}, header size: {response_binary_len}") print(f"[RESPONSE] test: {response['test']}, header size: {response_binary_len}")
if self.request_map['action'] == 'spider': if self.request_map['action'] == 'crawler':
pass pass
# TODO # TODO
finally: finally:

Loading…
Cancel
Save