Questions tagged [netmq]

A native .NET library for ZeroMQ messaging.

NetMQ is a 100% C# implementation of ZeroMQ for the .NET platform.

It provides a low overhead messaging solution for high performance applications over a variety of transports.

163 questions
3
votes
2 answers

NetMQ in Publisher and subscriber not working

I'm trying to implement the NetMQ Pub/Sub Model, but the Subscriber is not receiving any messages. What possibly is wrong here? private static void ServerTask() { using (var context = NetMQContext.Create()) { …
user2449952
  • 581
  • 1
  • 7
  • 21
2
votes
0 answers

How to find who is subscribed to NetMQ PUB Socket?

I just want to list all subscribers before I send a message for audit purposes. Is it possible in NetMQ or shall I use netstat?
Boppity Bop
  • 9,613
  • 13
  • 72
  • 151
2
votes
1 answer

Why are the tasks not being distributed to all the workers?

The following in translated from the Divide and Conquer example in the ZeroMQ guide. module ZeroMQ open System open System.IO open System.Threading open System.Threading.Tasks open NetMQ open NetMQ.Sockets let parallel_task () = let…
Marko Grdinić
  • 3,798
  • 3
  • 18
  • 21
2
votes
0 answers

NetMQ Actor pattern

I'm trying to have one WPF application to communicate with an other application when something change on the UI. For example : a slider changes and I send the new value or a textbox input change and I send the new input value. The second…
lecloneur
  • 424
  • 5
  • 20
2
votes
2 answers

NetMQ On A Network

I'm trying to do messaging between programs on separate computers on a local network. The design is basically one "server," multiple "clients," with the server sending messages to the clients and receiving messages from the clients, and the clients…
2
votes
1 answer

Understanding the MajorDomo Pattern from NetMQ ZeroMQ

I am trying to understand how to best implement the MDP example in c# to be used in a windows service in a multiple client - single server environment. I have read the docs but I am still unclear on the following: Should all Worker instances be…
RedSix
  • 153
  • 1
  • 7
2
votes
0 answers

NetMQ DealerSocket fails to receive message

My Python3 server code: import zmq context = zmq.Context() router = context.socket(zmq.ROUTER) router.bind("tcp://*:1337") router.send_multipart([b'build_0', b'']) while True: pass My C# client code: /// /// Receive data from…
2
votes
1 answer

Correct pattern for ZeroMQ Server/Client type

I have a server that needs to get instructions to run processes for clients on another machine. The clients send a job message, the Server processes the job and later sends the back results. I tried using the NetMQ Request-Response pattern (see…
ManInMoon
  • 6,795
  • 15
  • 70
  • 133
2
votes
1 answer

ZMQ request sending guarantee

I cannot find anywhere in the guide or RFC if when using REQ / REP sockets, suppose I successfully send a message through the REQ socket, does it guarantee that the REP socket got the message ? If not how do you introduce single client/server…
2
votes
0 answers

Enable Client to Talk to Server using the NetMQ "Realiable Pub/Sub" Pattern

I have a v4.0.0.1 implementation of Somdron's "Reliable Pub-Sub" pattern for communication between two parts of a new application. This application will have a "Server" (the engine that does all the heavy calculations) and "Clients" that will send…
MoonKnight
  • 23,214
  • 40
  • 145
  • 277
2
votes
1 answer

Is there a way to use TCP keepalive as an event?

Since I use TCP for connection I wonder if I could use keep-alive signal as notification source for my app. Namely I would like to detect disconnection state (for given socket) at client side and server side. Is it possible? If yes -- how to do it?…
astrowalker
  • 3,123
  • 3
  • 21
  • 40
2
votes
1 answer

ZeroMQ FiniteStateMachineException in REQ/REP pattern

I have two simple components which are supposed to communicate with each other using the REQ/REP ZeroMQ pattern. The Server (REP Socket) is implemented in Python using pyzmq: import zmq def launch_server(): print "Launching server" with…
EmEs
  • 167
  • 1
  • 3
  • 16
2
votes
1 answer

NetMQ Proxy with control socket usage example in XSub/Xpub pattern?

I am trying to implement a hub with XPUB/XSUB pattern with NetMQ + control socket (to control hub's behavior). I use proxy, NetMqPoller, and want to use control socket. But whatever I try - it does not work. Here is my code, any ideas why it does…
Dima
  • 1,717
  • 15
  • 34
2
votes
2 answers

Performance Issue of Sending Large Object using NetMQ Multipart Message

I'm sending large object using the following code in C# (NetMQ): var client = new DealerSocket(""); var serializedData = new string('*', 500000); var message = new…
OmG
  • 18,337
  • 10
  • 57
  • 90
2
votes
2 answers

Added reference not detected in visual studio

When trying to install the netmq vis nuget, I get the following error: Could not install package 'AsyncIO 0.1.18'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile111', but the package…
ProEns08
  • 1,856
  • 2
  • 22
  • 38
1 2
3
10 11