[nanomsg] NNG compatibility layer API tweaks

  • From: "Garrett D'Amore" <garrett@xxxxxxxxxx>
  • To: "nanomsg@xxxxxxxxxxxxx" <nanomsg@xxxxxxxxxxxxx>
  • Date: Mon, 21 May 2018 11:27:53 -0700

This only impacts you if you are using the legacy nanomsg compatible APIs
with NNG currently.  (If you’re not doing so yet, the changes described
here will make your life simpler.)

In order to simplify source compatibility, some of the defines for
protocols and transports are moving to new headers (out of nn.h) to match
their location in legacy libnanomsg.  This is meant to enhance
compatibility at the source code layer, so that *no* source files need to
be modified, only compilation flags should need to be updated when
compiling legacy nanomsg applications with NNG.

If you’ve already made some conversion, I apologize.  You will need to add
back the headers for protocols (e.g. <nanomsg/reqrep.h> and so forth) that
you may have removed.  The intention here is to reduce friction for
everyone going forward.

This change will be in the next beta release (1.0.0-beta.2, planned for
release later today.)

 - Garrett

Other related posts:

  • » [nanomsg] NNG compatibility layer API tweaks - Garrett D'Amore