= rb-zmq
* http://www.zeromq.org
== DESCRIPTION:
This gem comprises the ruby bindings for ZeroMQ
== FEATURES/PROBLEMS:
* Posix signal handling is a bit goofy, so things like handling SIGTERM (ctrl-c) at the console have to be done by hand.
== SYNOPSIS:
require 'rubygems'
gem 'ruby-mq'
bind_to = 'tcp://127.0.0.1:5555'
message_size = 1
roundtrip_count = 100
ctx = Context.new(1, 1, 0)
s = Socket.new(ctx, REP);
s.bind(bind_to);
for i in 0...roundtrip_count do
msg = s.recv(0)
s.send(msg, 0)
end
sleep 1
== REQUIREMENTS:
* The libzmq must be installed & loadable
* You _must_ configure the C language bindings for zeromq (build with --with-c) to get the zmq.h file into the appropriate place.
== INSTALL:
* gem install rb-zmq
== LICENSE:
This software is licensed under the same terms as ZeroMQ itself.
* http://www.zeromq.org
== DESCRIPTION:
This gem comprises the ruby bindings for ZeroMQ
== FEATURES/PROBLEMS:
* Posix signal handling is a bit goofy, so things like handling SIGTERM (ctrl-c) at the console have to be done by hand.
== SYNOPSIS:
require 'rubygems'
gem 'ruby-mq'
bind_to = 'tcp://127.0.0.1:5555'
message_size = 1
roundtrip_count = 100
ctx = Context.new(1, 1, 0)
s = Socket.new(ctx, REP);
s.bind(bind_to);
for i in 0...roundtrip_count do
msg = s.recv(0)
s.send(msg, 0)
end
sleep 1
== REQUIREMENTS:
* The libzmq must be installed & loadable
* You _must_ configure the C language bindings for zeromq (build with --with-c) to get the zmq.h file into the appropriate place.
== INSTALL:
* gem install rb-zmq
== LICENSE:
This software is licensed under the same terms as ZeroMQ itself.