Sha256: 33423c5cefe302d77034a315fea5f4ea794804d47cd251655e2702136df324d9

Contents?: true

Size: 267 Bytes

Versions: 1

Compression:

Stored size: 267 Bytes

Contents

require 'rzmq-enhancement'
require 'pp'

include ZeroMQ
EP = 'ipc://reqresp.ipc' 

# request

(0..10).each do |i|
  zeromq_request( :request_example,
                  EP,
                  payload: [i, i*i] ) do |result|
    print "result: "
    pp result
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rzmq-enhancement-0.0.18 examples/rr-request.rb