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
0
votes
0 answers

ZeroMQ NetMQ TrySend always succeeds

public static void ZeroMQ() { try { TimeSpan timeout = TimeSpan.FromMilliseconds(2000); AsyncIO.ForceDotNet.Force(); using (PairSocket client = new PairSocket("tcp://127.0.0.1:5555")) { …
Programmer9000
  • 1,959
  • 3
  • 17
  • 27
0
votes
0 answers

NetMQ response socket poll fails after succeeding one time

I'm new to the world of ZeroMQ and I'm working through the documentation of both NetMQ and ZeroMQ as I go. I'm currently implementing (or preparing to implement) the Paranoid Pirate Pattern, and hit a snag. I have a single app which is running the…
Isaac
  • 334
  • 1
  • 4
  • 12
0
votes
1 answer

What is the currently proper request-response pattern for NetMQ?

I'm trying to upgrade a Windows desktop application from .Net Framework to .Net (Core) 6.0. As part of that, I need to use NetMQ instead of the old clrzmq. But every reference I find for how to do a simple request-response using the new API has been…
Grault
  • 974
  • 12
  • 31
0
votes
0 answers

How can I secure socket in NetMQ/ZeroMQ?

I'm using Router-Dealer and Pub-Sub patterns to send and receive messages using TCP(tcp://). The Server-Client communication is working fine and now I need to secure this socket connection over a network. How can I make the connection secure in…
Ajith KT
  • 103
  • 1
  • 6
0
votes
0 answers

Why does .NetFramework console exe program shut down by itself after 1 day idle?

I have a Console application that is ran on the background. Its a simple server that built using NetMQ library and NLogger that works locally. I ran the program using taskScheduler with the following command schtasks /create /sc ONSTART /tn…
MH Rahman
  • 81
  • 8
0
votes
2 answers

Automatic reconnect in case of network failures

I am testing .NET version of ZeroMQ to understand how to handle network failures. I put the server (pub socket) to one external machine and debugging the client (sub socket). If I stop my local Wi-Fi connection for seconds, then ZeroMQ automatically…
Serg046
  • 1,043
  • 1
  • 13
  • 42
0
votes
1 answer

Many to many communication

I have several servers handling the same requests and several clients sending requests. The servers are routers to keep/track the identity of the clients and the clients are dealers which round robin servers. Does this dealer/router pair without a…
Serg046
  • 1,043
  • 1
  • 13
  • 42
0
votes
0 answers

.NET Docker Containers connect each other using NetMQ

I have two .NET core web APIs as docker containers. I want with NetMQ one to send messages and other listen to it. But I think I have some problems connectiong those two with tcp connection. I use Docker compose. version: '3.4' services: …
0
votes
1 answer

How to send message to a specific Worker on NetMQ?

I have a problem with ZeroMQ on C# to send a message to a specific worker. The architecture of the application is as follows: I want to send a message from "client1" to "worker2" for example. But my application send to "worker1" then "worker2" for…
QuentinMrt
  • 13
  • 3
0
votes
0 answers

0MQ / NetMQ - pub-sub - How can a subscriber know it the publisher is down?

Using NetMQ (port from ZeroMQ) with C#. The publisher and subscriber live on different web services. At an underdetermined time, a publisher will broadcast a message to all subscribers. If the web service which holds the publisher goes down, how can…
GIVE-ME-CHICKEN
  • 1,239
  • 3
  • 15
  • 29
0
votes
1 answer

NetMQ (ZeroMQ) how to make "Brokerless Reliability (Freelance Pattern)" works

I facing some problems with the example I got from the ZeroMQ Guide, looks like the class ZSocket and ZContext doesn't exist. I'm totally new with ZeroMQ (just start lo learn) and I'm following the "ØMQ - The Guide". The first example about REQ-REP,…
0
votes
0 answers

NetMQ Request/Response sometimes fails when reopen the response server

I am trying to use NetMQ to send and receive messages from the Request/Response pattern. I want to simulate network disconnect by reopen the response server. The messaging sometimes fails when reopen the response server. What am I doing wrong? Any…
Lienchi
  • 49
  • 6
0
votes
1 answer

How to send a message from C# client to C++ server using ZeroMQ

I am making an application that works in three different parts. One server running in C ++ and two clients running in C # and Python. The client connects to the server and sends a message. To do this I have opted for ZeroMQ. Because this is a POC,…
0
votes
1 answer

Using NetMQ to receive data in a C# application

I'm having trouble making a simple test app that uses NetMQ to receive data from an established network. I'd like to eventually do things with this data, but for now I just need to get basic receiving working. The code is below: public partial…
Beep13
  • 11
  • 2
0
votes
1 answer

Unity can't quit player mod (ZMQ)

sorry for my english I start a new thread with a while(true) to receive information from socket but when I want to quit I have to use the Windows task manager. In fact, the method OnApplicationQuit() is never reached and Unity freeze. I would like…
Korolle
  • 1
  • 2