zeromq

NODE_MODULE_VERSION 46. This version of Node.js requires NODE_MODULE_VERSION 64. Please try re-compiling or re-installing

白昼怎懂夜的黑 提交于 2019-12-22 10:39:53
问题 I am trying to execute a node app which was provided to me and it is supposed to work fine. I have tried running it but I am not able to fix this error: seba@vps92941:~/services/drivetech$ node awto.js /home/seba/services/drivetech/node_modules/bindings/bindings.js:83 throw e ^ Error: The module '/home/seba/services/drivetech/node_modules/zmq/build/Release/zmq.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 46. This version of Node.js requires NODE_MODULE

ZeroMQ push socket causes client to not terminate when no process is listening

自闭症网瘾萝莉.ら 提交于 2019-12-22 08:17:01
问题 I'm just starting to mess with ZeroMQ and I have a problem with a client that doesn't terminate normally. In particular I have a client that may "push" data when no sink server is listening and that seems to make the process hang after the python code has finished. I assume there is some background thread that needs to be cleaned up -- please tell me how or point to documentation. Here is the relevant piece of code. If I run the process with no listener with the "self.push" line uncommented

Cannot import zmq in python (install issue)

不想你离开。 提交于 2019-12-22 07:03:41
问题 I can't seem to install pyzmq on my macbook (OSX 10.9.1) First call was to run: sudo pip install pyzmq There was an error that libzmq couldn't be found, and it appeared to try and compile the bundled version: jono@air:~ $ sudo pip install pyzmq Password: Downloading/unpacking pyzmq Downloading pyzmq-14.0.1.tar.gz (867kB): 867kB downloaded Running setup.py egg_info for package pyzmq no previously-included directories found matching 'docs/build' no previously-included directories found matching

N to N async pattern in ZeroMQ?

醉酒当歌 提交于 2019-12-22 04:35:12
问题 although I went through the guide I cant find a way to do the following: we have n publishers, we have m subscribers. Each subscriber subscribes to certain type of msg(one publisher can send more than one kind of the message, multiple pubs can emit msgs of same type). How to create N to N(or N to 1 to N) pattern in 0MQ that does that? 回答1: 0MQ automatically allows N to M networks; just connect each subscriber to each publisher. That can become a burden to manage, in which case you can use a

How to implement an active & standby queue job-processing system in JeroMQ?

六月ゝ 毕业季﹏ 提交于 2019-12-22 04:08:23
问题 Using ZeroMQ .Context and .Socket instances, I am able to push/pull messages for example below my code for a Queue like setup: ZMQ.Context context = ZMQ.context(1); // Socket to send messages on ZMQ.Socket sender = context.socket(ZMQ.PUSH); sender.bind("tcp://*:5557"); // Send messages sender.send("0", 0); ZMQ.Socket receiver = context.socket(ZMQ.PULL); receiver.connect("tcp://localhost:5557"); // receive messages String string = new String(receiver.recv(0)).trim(); My questions are : Q1: How

ZMQ REP, knowing who send the request

妖精的绣舞 提交于 2019-12-22 04:08:02
问题 I m currently using zmq with python. Server is using REP socket. Do I have a way, when recv a message, to know who send it ? If a receive 2 messages, I just need to know if they come from the same user or not, so an uid for example would be enough. 回答1: It looks like you want to implement async request handling on the server side: you let the server accept requests, process them asynchronously, and send the responses back to clients whenever the response data is available for each request.

How to send a message in MQL4/5 from MetaTrader Terminal to python using ZeroMQ?

爱⌒轻易说出口 提交于 2019-12-22 00:13:06
问题 I just want to send a message from MetaTrader Terminal, using it`s MQL4/5 to Python, just a simple client server, in which MQL4/5 is a client that sends, and python is a server who receives and these two are syncing with ZeroMQ. The Python side code is this which I am sure this part is working fine: import zmq import time context = zmq.Context() socket = context.socket(zmq.REP) socket.bind("tcp://127.0.0.1:9999") print("Server Started") while True: message = socket.recv() # Wait for next

zeromq php extension for windows

眉间皱痕 提交于 2019-12-21 21:29:04
问题 I am using Zend server configured with IIS 7.5. I searched for edit: zeromq php extension, I found these http://valokuva.org/builds/ and http://snapshot.zero.mq/ I have tried to add extension in php.ini and when I enable it form zend admin it shows an error "The system could not load this extension" and in logs "PHP Startup: Unable to load dynamic library 'C:\Program Files\Zend\ZendServer\lib\phpext\php_zmq.dll' - The specified module could not be found. in Unknown on line 0". I have tried to

How to synchronize the publishers and subscribers in extended PUB-SUB pattern with Intermediary in ZeroMQ in c++?

混江龙づ霸主 提交于 2019-12-21 21:20:37
问题 Extended PUB/SUB topology I have multiple publishers and multiple subscribers in a use case with 1 intermediary. In the ZeroMQ guide, I learnt about synchronizing 1 publisher and 1 subscriber, using additional REQ/REP sockets. I tried to write a synchronization code for my use case, but it is getting messy if I try to write code according to logic given for 1-1 PUB/SUB . The publisher code when we have only 1 publisher is : //Socket to receive sync request zmq::socket_t syncservice (context,

Are there any Python 2.7 alternatives to ZeroMQ that are released under the BSD or MIT license?

半世苍凉 提交于 2019-12-21 17:33:30
问题 I am seeking Python 2.7 alternatives to ZeroMQ that are released under the BSD or MIT license. I am looking for something that supports request-reply and pub-sub messaging patterns. I can serialize the data myself if necessary. I found Twisted from Twisted Matrix Labs but it appears to require a blocking event loop, i.e. reactor.run(). I need a library that will run in the background and let my application check messages upon certain events. Are there any other alternatives? 回答1: Give nanomsg