[nanomsg] Managing Connections with nanomsg BUS

  • From: Nicolás Ortega Froysa <nortega@xxxxxxxxxxxxxxxxxxx>
  • To: NanoMsg Mailing List <nanomsg@xxxxxxxxxxxxx>
  • Date: Thu, 10 Aug 2017 23:06:41 -0500

I've been interested in using nanomsg for a personal project,
specifically with the BUS protocol. However I haven't found much on how
to manage individual connections with this (e.g. having a list of
connected peers or being able to disconnect specific peers). The only
possible way I can imagine doing this from what I've seen is for the
peer that initiates the connection (i.e. through `nn_connect()'). But
not so much for any process binding to a port. Perhaps it's simply that
I am not aware of how nanomsg works under the hood.

I am aware that with UNIX sockets when there is a new socket on a port
that you are listening to it gives you a new socket file descriptor for
that new connection, but I'm not completely sure how this crosses over
to nanomsg. Does anyone have good sample code demonstrating how this
would work?

Thanks.

-- 
Nicolás Ortega Froysa
https://themusicinnoise.net/
http://uk7ewohr7xpjuaca.onion/
Public PGP Key:
https://themusicinnoise.net/nortega@themusicinnoise.net_pub.asc
http://uk7ewohr7xpjuaca.onion/nortega@themusicinnoise.net_pub.asc

Attachment: signature.asc
Description: PGP signature

Other related posts: