使用zmq标准数据帧格式
This commit is contained in:
@@ -107,9 +107,8 @@ def main():
|
||||
label_type = 2 if label_type == 1 else 1
|
||||
|
||||
# 发送: multipart 3帧 [identity, '', data]
|
||||
# 使用标准格式(3帧),ROUTER 会自动附加 ZMQ 分配的客户端身份
|
||||
sock.send_multipart([
|
||||
b'datamock',
|
||||
b'',
|
||||
packet.tobytes()
|
||||
])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user