Sha256: cf7b30b95043e270f50fc563f39dfce05bc06cef01d85a79475b431b65a2b5d3

Contents?: true

Size: 251 Bytes

Versions: 4

Compression:

Stored size: 251 Bytes

Contents

#!/usr/bin/env ruby

require "rubygems"
require "#{File.dirname(__FILE__)}/../lib/pigato.rb"
#require "pigato"

worker = Pigato::Worker.new('tcp://localhost:55555', 'echo')
reply = nil

loop do
  request = worker.recv reply
  worker.reply request
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pigato-0.2.2 examples/echo_worker.rb
pigato-0.2.1 examples/echo_worker.rb
pigato-0.2.0 examples/echo_worker.rb
pigato-0.1.9 examples/echo_worker.rb