Sha256: 4946defa0a0c93e72dcb8ea3249e0eb1bad393cdd56932144fcefa1dc5cf14c6
Contents?: true
Size: 612 Bytes
Versions: 14
Compression:
Stored size: 612 Bytes
Contents
# Bare minimum to get some things directly from the ZMQ library itself # (without the CZMQ wrapper). module CZMQ::FFI::LibZMQ extend ::FFI::Library lib_name = 'libzmq' lib_paths = ['/usr/local/lib', '/opt/local/lib', '/usr/lib64'] .map { |path| "#{path}/#{lib_name}.#{::FFI::Platform::LIBSUFFIX}" } ffi_lib lib_paths + [lib_name] opts = { blocking: true # only necessary on MRI to deal with the GIL. } attach_function :zmq_strerror, [:int], :string, **opts attach_function :zmq_errno, [], :int, **opts attach_function :zmq_version, [:pointer, :pointer, :pointer], :void, **opts end
Version data entries
14 entries across 14 versions & 1 rubygems