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
1
vote
1 answer

NetMQ Receive/Response not working when looping

I took one of the simple receive/request socket example on https://netmq.readthedocs.io/ and wanted to make it work with a parametrizedThread in an infinite loop. The code works fine for few loops, after which it throws the A non-blocking socket…
yuppy10
  • 47
  • 6
1
vote
1 answer

ZeroMQ publisher socket - raise event on subscription

I was wondering if there is a way to raise events on new subscription to a publisher socket For example: PublisherSocket publisher = new PublisherSocket(); publisher.Bind("tcp://*:5555"); NetMQPoller poller = new…
areller
  • 4,800
  • 9
  • 29
  • 57
1
vote
2 answers

netMQ 4.0 multithreading

I have some problems with multi-threaded server based on netMQ 4.0. I tried to use http://zguide.zeromq.org/cs:mtserver, but there is no context on netMQ 4.0. I tried: for (var i = 0; i < workerCount; ++i) { new Thread(() =>…
krabcore
  • 885
  • 2
  • 8
  • 22
1
vote
1 answer

How netMQ Or zeroMQ decide which client to send

The code is here: using (var server = new ResponseSocket()) { server.Bind("tcp://*:5555"); while (true) { var message = server.ReceiveFrameString(); …
lcm
  • 531
  • 1
  • 5
  • 6
1
vote
2 answers

How can I both Send and Receive from a Router socket in ZeroMQ or NetMQ?

I have a Dealer <--> Router setup in NetMQ v4 where I can asynchronously send and receive messages in any direction with no problems. I now want to formalize that into an abstraction where the server (Router) listens for any incoming message but it…
MaYaN
  • 6,683
  • 12
  • 57
  • 109
1
vote
1 answer

ZMQ NetMQ - A non-blocking socket operation could not be completed

I have the following pattern : Multiples threads are sending messages to a ConcurrentQueue that is polled by a single threaded Dealer in order to send messages to a Router. The following exception is raised when multiples messages are sent…
Steven Muhr
  • 3,339
  • 28
  • 46
1
vote
1 answer

How to translate ReceiveReady method in NetMQ from C# to F#

I'm working with a library that does not have F# documentation, only C#. Having no familiarity with C# I'm having a bit of trouble. Reading through the documentation for NetMQ, there is one line that I'm having trouble translating: For context, here…
1
vote
1 answer

AsyncIO.ForceDotNet.Force() causes memory leak on Windows XP

Environment OS in Production: Windows XP SP3 IDE: Microsoft Visual Studio 2013 Ultimate Edition Targeted framework: .NET framework 3.5 NetMQ: 3.3.1 AsyncIO: 0.1.18 Language: C# We have a need to run a NetMQ application using a simple REQ REP…
Than Htike Aung
  • 261
  • 1
  • 2
  • 5
1
vote
2 answers

ZeroMQ / NetMQ: PushSocket.SendFrame not working

I am trying to send a "fire-and-forget" type message using NetMQ. I do not care about waiting for a response. This is for logging, and I care more about performance than being certain my message was received, and I especially don't want my web…
Travis Collins
  • 3,982
  • 3
  • 31
  • 44
1
vote
2 answers

Error when installing NetMQ via nuget to xamarin projects

I tried to install NetMQ to my xamarin application. Because NetMQ depends on AsyncIO, this package could not be installed and show me the following error: Could not install package 'AsyncIO 0.1.18'. You are trying to install this package into a…
ProEns08
  • 1,856
  • 2
  • 22
  • 38
1
vote
1 answer

Performance impact of using netmq poller

In the following code, I send and receive 100000 messages using netmq push/pull sockets. I first tried to do a simple blocking call using ReceiveFrameString (ReceiveSimple method) on my pull socket, then I tried to use a poller to do the same…
sebferry
  • 13
  • 1
  • 3
1
vote
1 answer

Weird delay with NetMQ/ZMQ C# message sending

I am trying to send a message via a ZeroMQ PublisherSocket but I can't seem to get it right. I have tried two different approaches but both have their own problems. SendFrame method PublisherSocket mainSendSocket =…
Erik Berkun-Drevnig
  • 2,306
  • 23
  • 38
1
vote
1 answer

What is the NetMQ equivalent of zthread_fork?

I want to implement an Out-of-Band-Snapshot using NetMQ. zeroMQ (ØMQ) describes this concept in "Chapter 5 - Advanced Pub-Sub Patterns" in the section "Getting-an-Out-of-Band-Snapshot". There are also examples of a server realizing this pattern in C…
Beachwalker
  • 7,685
  • 6
  • 52
  • 94
1
vote
0 answers

NetMQ PUSH socket blocks indefinitely when it reaches HWM

I'm using NetMQ (Nuget 3.3.2.2) on .NET 4.5 and I have a single fast generator process with a PUSH socket, and a single slow consumer process using a PULL socket. If I send enough messages to hit the sending HWM, the sending process blocks the…
McSti
  • 51
  • 3
1
vote
1 answer

Accessing NetMQ sockets from multiple threads

Is it safe to access a NetMQ socket from multiple threads, as long as they are not using it simultaneously? For example,is the following scenario OK: Thread A uses a socket. Thread A ends. Thread B uses the same socket. If not, must the sole…
tearvisus
  • 2,013
  • 2
  • 15
  • 32