Questions tagged [pynng]

pynng is a pythonic front-end to nng a.k.a. nanomsg new generation. Questions related to pynng use of this messaging framework and its interoperability with other ports of nng.

pynng presents a python importable front-end to the messaging and signaling services available from nng.

Long story short - smart messaging / signaling framework ZeroMQ's co-father Martin SUSTRIK initiated a younger sister, nanomsg that has next undergone re-factoring into nng.

6 questions
4
votes
1 answer

pynng: how to setup, and keep using, multiple Contexts on a REP0 socket

I'm working on a "server" thread, which takes care of some IO calls for a bunch of "clients". The communication is done using pynng v0.5.0, the server has its own asyncio loop. Each client "registers" by sending a first request, and then loops…
Artesim
  • 79
  • 8
3
votes
1 answer

Making pynng and socket talk to each other

TL;DR I spin up a server using pynng, then a client from Python Standard Library socket will try to send messages to it. The problem is that client can send the message, but server is oblivious to it. Therefore, it doesn't work. Am I missing…
Kit
  • 30,365
  • 39
  • 105
  • 149
1
vote
1 answer

Does NNG(Nano Message Next Generation) automatically transmit some heartbeat periodically?

I'm using NNG as my inter-server msg-queue. Background: I'm implementing a pair of long time background services, those are communicating with NNG; Protocol: pair0 @ tcp; The payload message occurs maybe a second, or maybe a day; My question: Does…
Leon
  • 1,489
  • 1
  • 12
  • 31
1
vote
1 answer

nng to pynng pub/sub. No messages recieved by client

I have the following server (C++): #include #include #include #include #include #include #include void fatal(const char *func, int rv) { …
Michael Hansen
  • 237
  • 2
  • 8
1
vote
1 answer

nng to pynng communication is not working

I am trying to make a c-program server that publishes images via nng, and a python client via pynng that subscribes to the images. For some reason i cannot connect these 2 parts and I dont know why. C/C++-program compiles and runs fine and so does…
Michael Hansen
  • 237
  • 2
  • 8
0
votes
1 answer

Simple pair communication with pynng

I am trying to set up a very simple pair communication using pynng, but the listening instance never seems to receive any messages when sending via TCP from a different device. client.py s =…
nutrx
  • 116
  • 4