lib/protobuf/zmq.rb



##
## ZMQ Mode
##
#
# Require this file if you wish to run your server and/or client RPC
# with the ZeroMQ handlers.
#
# To run with rpc_server specify the switch `zmq`:
#
#   rpc_server --zmq myapp.rb
#
# To run for client-side only override the require in your Gemfile:
#
#   gem 'protobuf', :require => 'protobuf/zmq'
#
require 'protobuf'
Protobuf.connector_type = :zmq

require 'ffi-rzmq'
require 'protobuf/rpc/servers/zmq/server'
require 'protobuf/rpc/connectors/zmq'