Skip to content

Question about replacement for deprecated nng_pair1_open_poly #1796

Answered by gdamore
drbitboy asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think you should worry about nng_pair1_open_poly() too much -- as long as you are willing to live with an NNG-only solution. Pair1 Poly won't be implemented in mangos. But it won't be removed until I have a replacement for it.

Your specific use case is arbitrary unicast messages to different participants. Pair1Poly has a "pipe id" for this, and you can use it for that.

Probably a future mesh pattern would build upon the API logic in pair1, but most importantly we need to change the wire protocol because to properly do this we need to create peer IDs and a stack backtrace. I've not yet figured out the best way to do this. It's simple until you start considering nng_device() style p…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by gdamore
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants