Make the socket_t::getsockopt() functions (which wrap zmq_getsockopt() ) const because they should only access and not modify socket state.
This is C++ binding for 0MQ The contribution policy is at: http://rfc.zeromq.org/spec:22