zmq中的router和dealer
https://segmentfault.com/q/1010000000638839
在zeromq的guide里,它用router/dealer模式做了一个broker
client对应ZMQ_REQ类型的zmq_socket
worker对应ZMQ_REP类型的zmq_socket
broker创建一个router和一个dealer,router接受client的消息并转发给worker,worker再把处理结果发送给dealer,dealer再转发给client.
新战场:https://blog.csdn.net/Stephen___Qin