# 需要导入模块: import zmq [as 别名]# 或者: from zmq importRCVHWM[as 别名]defget_hwm(self):"""Get the High Water Mark. On libzmq ≥ 3, this gets SNDHWM if available, otherwiseRCVHWM"""major = zmq.zmq_version_info()[0]ifmajor >=3:# return sndhwm, fallback on rcvhwmtry:returnsel...
ZMQ_PAIR); int HWM = 1; socket.setsockopt(ZMQ_RCVHWM, &HWM, sizeof(HWM)); socket.setsockopt(ZMQ_SNDHWM, &HWM, sizeof(HWM)); socket.connect("tcp://127.0.0.1:9876"); int count = 0; while(true) { zmq::message_