ZeroMQ-Client / Server-f1yinsky
#Executing the scripts:python reqrep_server.py 5546
python reqrep_server.py 5556
python reqrep_client.py 5546 5556
#Output:
#server-1
(D:\anaconda) C:\Users\admin\Desktop\opt>python reqrep_server.py 5546
Received request:Hello
Received request:Hello
Received request:Hello
Received request:Hello
Received request:Hello
#server-2
(D:\anaconda) C:\Users\admin\Desktop\opt>python reqrep_server.py 5556
Received request:Hello
Received request:Hello
Received request:Hello
Received request:Hello
#client
(D:\anaconda) C:\Users\admin\Desktop\opt>python reqrep_client.py 5546 5556
Connecting to server...
Sending request1 ...
Received reply1 [ World from 5546 ]
Sending request2 ...
Received reply2 [ World from 5556 ]
Sending request3 ...
Received reply3 [ World from 5546 ]
Sending request4 ...
Received reply4 [ World from 5556 ]
Sending request5 ...
Received reply5 [ World from 5546 ]
Sending request6 ...
Received reply6 [ World from 5556 ]
Sending request7 ...
Received reply7 [ World from 5546 ]
Sending request8 ...
Received reply8 [ World from 5556 ]
Sending request9 ...
Received reply9 [ World from 5546 ]
页:
[1]