zeromq

How to use Zeromq's inproc and ipc transports?

落爺英雄遲暮 提交于 2019-12-03 07:58:28
问题 Im a newbie to ZERMQ. ZeroMQ has TCP, INPROC and IPC transports. I'm looking for examples using python and inproc in Winx64 and python 2.7, which could also be used for linux. Also, I have been looking for UDP methods of transport and cant find examples. The only example I found is import zmq import zhelpers context = zmq.Context() sink = context.socket(zmq.ROUTER) sink.bind("inproc://example") # First allow 0MQ to set the identity anonymous = context.socket(zmq.XREQ) anonymous.connect(

How to use ZeroMQ in an GTK/QT/Clutter application?

情到浓时终转凉″ 提交于 2019-12-03 07:33:14
In gtk applications all execution is taking place inside the gtk_main function. And other graphical frame works have similar event loops like app.exec for QT and clutter_main for Clutter . However ZeroMQ is based on the assumption that there is an while (1) ... loop that it is inserted into (see for instance here for examples). How do you combine those two execution strategies? I am currently wanting to use zeromq in a clutter application written in C, so I would of course like direct answers to that, but please add answers for other variants as well. It sounds like the ZeroMQ code wants

Reserve a TCP port in Windows

こ雲淡風輕ζ 提交于 2019-12-03 07:26:20
问题 I'd like to reserve a TCP port, to be bound by a service later, so that Windows doesn't inadvertently use the same number when assigning random port numbers. I know this is possible via the registry and a reboot, but I would like to avoid such a heavy-handed solution. How can a process reserve a port without actually binding/listening to it, and then safely (i.e., avoiding race-conditions) hand it over to another process on request? The port number needn't be determined in advance. It's OK

Sending messages from other languages to an IPython kernel

眉间皱痕 提交于 2019-12-03 07:25:09
问题 Does anyone have any experience of communicating with IPython kernels from outside of Python? If I were trying to send messages from a Python app to an IPython kernel, I'd use the zmq.kernelmanager API. As it is, I'll obviously need to write my own kernel manager in another language, but I can't find the information that I'm looking for about the low-level messaging protocols. Is there an official spec or a 'cheat sheet' that documents the structure of the actual messages that get sent over

How to use zeroMQ in Desktop application

爷,独闯天下 提交于 2019-12-03 07:20:28
问题 I am working in a desktop application, where application is deployed in both windows and mac platforms. As part of the application, it should communicate with native layer. Currently the communication between native layer and Java layer is done using sockets. Recently some one in the team suggested to use zeroMQ. Can any one of you guys please clarify my doubts. How zeroMQ better than sockets Is it possible to install zeroMQ library as part the Desktop client installation I gone through the

ZeroMQ + Protocol Buffers

女生的网名这么多〃 提交于 2019-12-03 06:23:36
问题 ZeroMQ FAQ page suggest use of Google's protobuf as a way to serialise message content. Has anyone see a good usage example? I also need to get the answer to "What is the biggest advantage of serialising messages?" - whether it may be something I can live without and take the advantage of slimmer pipeline. I quite like the idea of .proto files and the protoc compiler. Also, it seem that another great tool to throw at the playground would be libev , any comments are welcome :) 回答1: If you are

Understanding zeromq java binding

扶醉桌前 提交于 2019-12-03 05:48:04
问题 I'm investigating zeromq as a message passing solution in a java project, but I find the instructions on java binding somewhat difficult to follow. http://www.zeromq.org/bindings:java I am unfamiliar with java bindings, so these may be stupid questions, but can someone help me understand: Why do I need to install anything? Will jars I build on one machine work on another system? I need this application to be portable. If so, why do I need to build my own jars to begin with? I feel like the

Am I using reactive-banana right?

陌路散爱 提交于 2019-12-03 05:04:36
问题 Here's an example Haskell FRP program using the reactive-banana library. I'm only just starting to feel my way with Haskell, and especially haven't quite got my head around what FRP means. I'd really appreciate some critique of the code below {-# LANGUAGE DeriveDataTypeable #-} module Main where {- Example FRP/zeromq app. The idea is that messages come into a zeromq socket in the form "id state". The state is of each id is tracked until it's complete. -} import Control.Monad import Data

How do I compile jzmq for ZeroMQ on OSX?

本小妞迷上赌 提交于 2019-12-03 04:33:12
问题 Trying to follow the directions from: http://github.com/zeromq/jzmq I installed pkg-config using Homebrew and then I run the following commands: ./autogen.sh ./configure The configure fails with: checking how to hardcode library paths into programs... immediate ./configure: line 15263: syntax error near unexpected token `newline' ./configure: line 15263: ` PKG_CHECK_MODULES(' 回答1: I made a simple list about jzmq building for MacOS. Install brew https://brew.sh Install tools for jzmq building

ZeroMQ in javascript client

自闭症网瘾萝莉.ら 提交于 2019-12-03 04:28:44
问题 Have anyone used ZmqSocket.js successfully? I'd like to know how can it be used to establish a safe channel between the browser and a zeromq server app. Is there other/better options for such use case? 回答1: I've never used ZmqSocket.js, but I can tell you that it's probably not a good idea (yet). This is because zmq still assumes that both peers know the protocol well and will blow up if given invalid data (they are working on fixing that, though). What I do right now is have a simple node.js