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

Up-to-date example of NetMQ multithreading

I am trying to create a single server/multiple clients NetMQ test program (I believe this should use the Router-Dealer pattern) which would allow the server to process unique client requests using workers on separate threads (and reply to each…
Lou
  • 4,244
  • 3
  • 33
  • 72
3
votes
1 answer

Publish message with PublisherSocket in C# UWP does not received in python

I'm trying to pass messages with NetMQ in C# UWP to python. The python acts as Subscriber, and the C# as Publisher. When I use C# .Net Core, I can see messages get to the python subscriber, but when I use C# UWP, nothing happens, though the code is…
Izik
  • 746
  • 1
  • 9
  • 25
3
votes
0 answers

Connection not working from Android to UWP on desktop - ZeroMq (NetMq)

I tried some examples of ZMQ on C++,C# and Python. I am trying to have Request-Reply pattern to connect Android device to PC running UWP with Xamarin forms. Below is the Requestor code: public void HelloWorld() { var timer = new Timer(60000); …
Morse
  • 8,258
  • 7
  • 39
  • 64
3
votes
1 answer

Cannot get ReadyReceive pub-sub to work using NetMQ 4.x

I created 2 simple C# Console Projects (.net 4.5.2), added the v4.0.0.1 NetMQ Nuget package to each, loaded each program up into separate Visual Studio 2017 Community Editions, put a breakpoint on the 1 line contained within the OnReceiveReady…
SteveH
  • 113
  • 8
3
votes
1 answer

How to resolve 'NetMQ.AddressAlreadyInUseException' using ZeroMQ

Let me explain how I got this exception from such a simple code, I've used a trading program called cAlgo where I tried to run a NetMQ server, apparently while stopping it, it doesn't close correctly, leaving the port unusable until I restart my…
Xavi
  • 124
  • 2
  • 9
3
votes
1 answer

Why does NetMQ DealerSocket on Mono send no message to server on Debian Wheezy, but does on Windows?

I have some problem with NetMQ 4.0.0.1 on Mono 4.8 on Debian Wheezy. Where Dealer socket is not sending any message until I won't stop calling it to send new message. When I will put Thread.Sleep( 1000 ) between creating a tasks with than everything…
bzyku
  • 120
  • 6
3
votes
1 answer

What is the NetMQ API for receiving in a custom buffer in order to avoid creating a new byte array on each frame/message?

I have the following code: while (!isCancellationRequested) { byte[] frameBytes = socket.ReceiveFrameBytes(); MyData data = new MyData(); data.Deserialize(frameBytes); // send the data somewhere somehow... } What I want to do, but I…
Ceco
  • 1,586
  • 3
  • 16
  • 23
3
votes
1 answer

Cannot reuse an endpoint after NetMQ socket disposal

In my application I am creating and disposing NetMQ sockets. I have noticed that I cannot bind to an endpoint for some time after the disposal of the previous socket bound to that endpoint. A minimal example: const string endpoint =…
tearvisus
  • 2,013
  • 2
  • 15
  • 32
3
votes
2 answers

NetMQ why is "SendReady" needed for Req-Rep?

I have a problem that I managed to fix... However I'm a little concerned as I don't really understand why the solution worked; I am using NetMQ, and specifically a NetMQ poller which has a number of sockets, one of which is a REQ-REP pair. I have a…
Squanchy
  • 77
  • 10
3
votes
1 answer

Using ZeroMQ in Xamarin

I have an application composed from a server and a client. The Server is C/C++ application, and the client is a cross-platform Xamarin application that target Windows, Android and iOS . The Server part and the Client part communicate using ZeroMQ…
ProEns08
  • 1,856
  • 2
  • 22
  • 38
3
votes
1 answer

How port allocation is done behind the scenes in zmq?

I have been looking into zmq for a while now and have implemented a simplified poc - to mimic my infrastructure design - using it (specifically using the NetMQ wrapper), with great results. My situation is this: In the future I am planning to run…
barakcaf
  • 1,294
  • 2
  • 16
  • 27
3
votes
2 answers

Poller on RouterSocket in NetMQ

I have a RequestSocket on the client side sending requests to a server. The server must be able to handle requests in parallel so I have used a RouterSocket with a poller. I am unsure if this is the best implementation since it uses a fair amount of…
OMGKurtNilsen
  • 5,048
  • 7
  • 27
  • 36
3
votes
1 answer

Is NetMQ compatible with ZMTP 1.0?

Does anybody knows if NetMQ is compatible with ZMTP 1.0? I can't find any information about what versions is supported.
Erik Z
  • 4,660
  • 6
  • 47
  • 74
3
votes
3 answers

ZeroMQ: Disappearing messages

We have a Java application which is acting as a server. Client applications (written in C#) are communicating with it using ZeroMQ. We are (mostly) following the Lazy Pirate pattern. The server has a Router socket, implemented as follows (using…
3
votes
2 answers

IObservable with NetMQ receive

I'm trying to write a typical stock trading program, which receives stock tickers/orders/trades from netmq, turn the streams into IObservable, and show them on a WPF frontend. I try to use async/await with NetMQ blocking ReceiveString (suppose I am…
Ralph Zhang
  • 5,015
  • 5
  • 30
  • 40
1
2
3
10 11