[nanomsg] possibly breaking change

  • From: "Garrett D'Amore" <garrett@xxxxxxxxxx>
  • To: "nanomsg@xxxxxxxxxxxxx" <nanomsg@xxxxxxxxxxxxx>
  • Date: Thu, 15 Mar 2018 00:22:59 +0000

I’ve just committed some changes to the nng_sockaddr structures that may
break your code if you’re using or relying on them.  (You probably aren’t,
in which case just delete this message.)

Essentially, the nng_sockaddr is now just a union, not a structure
enclosing a union, so we can eliminate the silly s_un extra level of
dereferencing.

Also, nng_sockaddr_inproc is a different structure, with a member called
sa_name instead of sa_path, and the s_path member of nng_sockaddr
(corresponding to NNG_AF_IPC) is renamed to s_ipc.

These were minor inconsistencies that I ran into as I was documenting
stuff, and I figured its a good time to fix them before people start
depending too heavily on them.

I’ll be pushing this out into 0.7.0 later this week, I think.  I have a few
more API changes to make (additions in this case) first.

Thanks.

 - Garrett

Other related posts:

  • » [nanomsg] possibly breaking change - Garrett D'Amore