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

Is there a way to do ZeroMQ style polling in NetMQ?

In order to learn the library, I've been translating the examples from the ZeroMQ guide to NetMQ. I've gone through a third of the book, and the main sticking point that I have with the library is the way it deviates from ZeroMQ in how it does…
Marko Grdinić
  • 3,798
  • 3
  • 18
  • 21
0
votes
0 answers

How to cancel a `ResponseSocket` server?

module Main open System open System.Threading open System.Threading.Tasks open NetMQ open NetMQ.Sockets let uri = "ipc://hello-world" let f (token : CancellationToken) = use server = new ResponseSocket() use poller = new NetMQPoller() …
Marko Grdinić
  • 3,798
  • 3
  • 18
  • 21
0
votes
0 answers

Is there a C# library to manage a point-to-point socket connection with a unknown remote end?

I am developing an application which will open TCP/IP sockets to remote locations. For each of these connections, messages will flow in both directions asynchronously. There isn't any request-response behavior. I've been looking at NetMQ and I like…
Cakemeister
  • 191
  • 2
  • 6
0
votes
1 answer

NetMQ How to detect slow subscribers using HighWatermark option and disconnect them by publisher?

I put simply delay before subscriber reads next frame, so I expected that this will simulate slow subscriber and give some effects of HighWatermark option. I don't observe anything, subscriber doesn't skip (drop) any messages neither slow down the…
ziomyslaw
  • 201
  • 2
  • 12
0
votes
0 answers

Can a NetMQ router socket (server) detect if a req socket (client) has reached a timeout?

I am using NetMQ v3.3.3.4 to develop a simple server(RouterSocket) - client(RequestSocket) scenario. It works as expected except for one thing. Sometimes the server takes too long to return a response and the client reaches a timeout. This behavior…
0
votes
1 answer

Sending Protobuf message from C# to python

I Have a simple class with two fields in proto file: (proto3) enum MaestroMsgType { EVAL = 0; GET_ACK = 1; GET_AN = 2; } message MaestroMsg { MaestroMsgType msgType = 1; string maestroMsg = 2; } I'm trying to send (with netMQ…
Izik
  • 746
  • 1
  • 9
  • 25
0
votes
0 answers

NetMQ Polling a rep socket with a timeout in a loop

I'm trying to port my code from an obsolete library called CastleMQ to NetMQ but I'm running into some problems. I prefer to using polling with a timeout, for reliability - I just found that it worked best for me from trial and error compared to…
ycomp
  • 8,316
  • 19
  • 57
  • 95
0
votes
1 answer

Two-way communication between C# WPF application and python script

I'm trying to get a tow-way communication between a c# application and a python script that c# will call. I have some input channels in c# that changes constantly at high frequency (5000-1000 data/s) for let's say a minute. On every change of those…
0
votes
1 answer

ZMQ implemetnation with Major domo pattern. is it possible to mix connection protocols between worker-broker and broker-client?

I have successfully able to connect worker and broker on tcp protocol and then client to broker on tcp. Now i am evaluating that is it possible that worker and broker can connect on ipc/inproc protocol while client will connect to broker on tcp. My…
Kamran Shahid
  • 3,954
  • 5
  • 48
  • 93
0
votes
1 answer

Why the client cann't receive message from server with NetMQ framework?

Recently, I use the NetMQ to send or receive message between server and client. Server codes like: void Main() { CreatePullAndPushSocket(); Task.Factory.StartNew(()=> { while (true) { …
Jason
  • 3
  • 4
0
votes
1 answer

NetMQ multiple publishers

I am running a pub-sub set-up that works very well for a single publisher and multiple subscribers. But I now wish to have several publishers publishing to the same "Channel", when I try this, the second time I try to Bind I get an…
ManInMoon
  • 6,795
  • 15
  • 70
  • 133
0
votes
1 answer

Should I lock in Subscriber?

Is it necessary top "lock" as Subscriber in NetMQ I think it is, would the point I am doing it below seem the right place? private void Subscribe() { using (var client = new SubscriberSocket()) { …
ManInMoon
  • 6,795
  • 15
  • 70
  • 133
0
votes
0 answers

Why Azure Service Fabric does not deliver all messages, while local cluster does?

I am using the C# NetMQ library. I have a producer and consumer service deployed in Azure using Service Fabric stateful services. I have both services partitioned so that there are two instances of each. The producer instances each create a…
Lyall
  • 895
  • 9
  • 20
0
votes
0 answers

How to fill automatically a Dropdown List from a StringBuilder

I'm using NetMQ for remoting a device. It is a Server/Client based architecture. I implemented a GUI with WPF and Xaml which let me send commands as strings and receive answers also as strings. The Host Application has a Dictionary
Hichow
  • 21
  • 2
0
votes
1 answer

IQbservable<> needs assembly already in project

Using a project that targets .Net 4.5, I have a section of code that does this public static IObservable Receive(SubscriberSocket subp) { return Observable .Create(o => Observable.Using
Ivan
  • 7,448
  • 14
  • 69
  • 134