| Class | ZMQ::Util |
| In: |
lib/ffi-rzmq/util.rb
|
| Parent: | Object |
General utility methods.
Attempts to bind to a random tcp port on host up to max_tries times. Returns the port number upon success or nil upon failure.
Generate and return a CURVE public/private keypair
Raises an error if ZeroMQ is not configured for CURVE connections. Install libsodium if this is the case.
:doc: Called to verify whether there were any errors during operation. If any are found, raise the appropriate ZeroMQError.
When no error is found, this method returns true which is behavior used internally by send and recv.
Returns a string corresponding to the currently set errno. These error strings are defined by libzmq.