module CZMQ::FFI::LibZMQ

Bare minimum to get some things directly from the ZMQ library itself (without the CZMQ wrapper).

Constants

VERSION

Public Class Methods

has?(capability) click to toggle source

@param capability [Symbol, String] the name of the capability @return [Boolean] whether the capability is supported

# File lib/czmq-ffi-gen/libzmq.rb, line 31
def self.has?(capability)
  ptr = FFI::MemoryPointer.from_string(capability.to_s.downcase)
  zmq_has(ptr) == 1
end
has_curve?() click to toggle source

@return [Boolean] whether CURVE is supported

# File lib/czmq-ffi-gen/libzmq.rb, line 44
def self.has_curve?
  has? :curve
end
has_draft?() click to toggle source

@return [Boolean] whether the DRAFT API is supported

# File lib/czmq-ffi-gen/libzmq.rb, line 38
def self.has_draft?
  has? :draft
end