zmq错误码156384763的原因 [英] Reason for zmq error code 156384763

查看:24
本文介绍了zmq错误码156384763的原因的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 zmq req/rep 模式通信.实现非常简单,req 发送一些数据并等待 recv.代表接收数据,处理并回复.

I am using zmq req/rep pattern communication. The implementation is pretty simple, the req sends some data and waits on recv. The rep receives the data, process and reply back.

//REQ
zmq_connect
zmq_send
zmq_recv //blocking
zmq_close

//REP
zmq_bind
while(true) {
  while(data_received) {
    //miscellaneous process
    zmq_recv //non-blocking
      Print zmq_error_no if zmq_recv fails
  }
  zmq_send
}

在 REP 端,在 zmq_recv 超时期间 zmq_error_no 11 将被打印.但有时我会收到 156384763 号错误.谁能说出该错误的含义?

In the REP side, during zmq_recv timeout zmq_error_no 11 will be printed. But sometimes i am getting error no 156384763. could anyone tell the meaning for that error?

推荐答案

这是原生 ZeroMQ 错误 EFSM:

This is the native ZeroMQ error EFSM:

由于套接字未处于适当的状态,此时无法在此套接字上执行 zmq_send() 操作.在多个状态之间切换的套接字类型可能会出现此错误,例如 ZMQ_REP.

The zmq_send() operation cannot be performed on this socket at the moment due to the socket not being in the appropriate state. This error may occur with socket types that switch between several states, such as ZMQ_REP.

来源:zmq_sendzmq.h

这篇关于zmq错误码156384763的原因的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆