[zeromq-dev] Assert if setsockopt wrong used

Pieter Hintjens ph at imatix.com
Thu Mar 29 06:27:40 CEST 2012

Hi all,

Problem: people using setsockopt wrongly get weird downstream
behaviours that can take time to debug if they don't systematically
check their return codes.

Solution: libzmq should assert if passed an invalid getsockopt or setsockopt.

Thoughts? Seems a valid use for assertions. I'll write this up as an
issue there's consensus.


More information about the zeromq-dev mailing list