0.05
No release in over 3 years
Low commit activity in last 3 years
This gem provides only the FFI wrapper for the ZeroMQ (0mq) networking library. Project can be used by any other zeromq gems that want to provide their own high-level Ruby API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

>= 0
 Project Readme

ffi-rzmq-core

The intention of this gem is to provide a very basic FFI wrapper around the Zeromq libzmq C API. This gem isn't intended to be used directly by any Ruby programmer looking to write Zeromq code. They should use a higher-level gem like ffi-rzmq which pulls in this gem for its FFI definitions.

There have been complaints that the ffi-rzmq gem doesn't provide the correct or best Ruby idioms, so I am hoping this encourages other library writers to create their own. Rather than duplicate the FFI wrapping code, they can just pull in this gem and build a more idiomatic library around the basic definitions.

As of zeromq 4.2.x, this library does not yet support the zmq_atomic_counter_* functions or many of the other newly exposed functions. Pull requests encouraged!

See [ffi-rzmq]

Development

As this library supports both ZeroMQ 3.2+ and ZeroMQ 4.0+ it's common to have to swap out which version of ZeroMQ is installed to test out various features (say, 4.0 for security).

With Homebrew on Mac OS X this is easy enough. The main ZeroMQ formula installs 4.0. To get version 3.2 pull in the homebrew-versions using:

brew tap homebrew/versions

and install version 3.2:

brew install zeromq32