Sha256: 1dc182328ba38c63f363d16397ed389dacd05573d08bc9360a1ffe6fd32bfabc

Contents?: true

Size: 685 Bytes

Versions: 6

Compression:

Stored size: 685 Bytes

Contents

# Wraps the new API methods available in ZeroMQ 4
#
module LibZMQ

  attach_function :zmq_ctx_term,     [:pointer], :void, :blocking => true
  attach_function :zmq_ctx_shutdown, [:pointer], :void, :blocking => true

  attach_function :zmq_send_const,   [:pointer, :pointer, :size_t], :int, :blocking => true

  attach_function :zmq_z85_encode,   [:pointer, :pointer, :size_t], :string, :blocking => true
  attach_function :zmq_z85_decode,   [:pointer, :string],           :pointer, :blocking => true

  # Requires ZMQ compiled with libsodium
  # Will return -1 with errno set to ENOSUP otherwise
  attach_function :zmq_curve_keypair, [:pointer, :pointer], :int, :blocking => true

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ffi-rzmq-core-1.0.6 lib/ffi-rzmq-core/libzmq4.rb
ffi-rzmq-core-1.0.5 lib/ffi-rzmq-core/libzmq4.rb
ffi-rzmq-core-1.0.4 lib/ffi-rzmq-core/libzmq4.rb
ffi-rzmq-core-1.0.3 lib/ffi-rzmq-core/libzmq4.rb
ffi-rzmq-core-1.0.2 lib/ffi-rzmq-core/libzmq4.rb
ffi-rzmq-core-1.0.1 lib/ffi-rzmq-core/libzmq4.rb