This commit is contained in:
hkslover
2024-05-24 13:00:10 +08:00
parent 811f794a5f
commit 5840e5883f
3 changed files with 41 additions and 8 deletions

View File

@@ -0,0 +1,13 @@
import zmq
context = zmq.Context()
socket = context.socket(zmq.REQ)
socket.connect("tcp://localhost:6666")
if __name__ == '__main__':
print('zmq client start....')
while True:
# str1 = input(":")
socket.send_string('')
message = socket.recv_pyobj()
print(message)