public:it:zeromq

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
public:it:zeromq [2015/03/20 10:20] oakfirepublic:it:zeromq [2018/02/28 13:48] (当前版本) – 外部编辑 127.0.0.1
行 5: 行 5:
 // TCP port 5555 on the first Ethernet network interface on Linux // TCP port 5555 on the first Ethernet network interface on Linux
 rc = zmq_bind(socket, "tcp://eth0:5555"); assert (rc == 0);</code> rc = zmq_bind(socket, "tcp://eth0:5555"); assert (rc == 0);</code>
 +  * zmq 的 hwm(high water mark) 并不精确,从[[http://stackoverflow.com/questions/22613737/how-could-i-set-hwm-in-the-push-pull-pattern-of-zmq/|这个回答]]来看, hwm 是在内核socket发送buffer满了之后再在内存里排队的数量, 所以想把消息限制精确在某个小值内比较难. 
  
 ==== CentOS 下的安装 ==== ==== CentOS 下的安装 ====
  • public/it/zeromq.1426818001.txt.gz
  • 最后更改: 2015/03/20 10:20
  • oakfire