Sha256: d49379c8d72137e5bb1ba44e3e415750674eb2227230ffea87552012f1775fb9

Contents?: true

Size: 234 Bytes

Versions: 17

Compression:

Stored size: 234 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')

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
pigato-0.2.27 examples/echo_worker.rb
pigato-0.2.26 examples/echo_worker.rb
pigato-0.2.25 examples/echo_worker.rb
pigato-0.2.23 examples/echo_worker.rb
pigato-0.2.22 examples/echo_worker.rb
pigato-0.2.21 examples/echo_worker.rb
pigato-0.2.20 examples/echo_worker.rb
pigato-0.2.19 examples/echo_worker.rb
pigato-0.2.18 examples/echo_worker.rb
pigato-0.2.17 examples/echo_worker.rb
pigato-0.2.15 examples/echo_worker.rb
pigato-0.2.14 examples/echo_worker.rb
pigato-0.2.13 examples/echo_worker.rb
pigato-0.2.12 examples/echo_worker.rb
pigato-0.2.11 examples/echo_worker.rb
pigato-0.2.10 examples/echo_worker.rb
pigato-0.2.9 examples/echo_worker.rb