Sha256: b7471d165e8bf49f9b714ad4b227ae7c2935a16888bf3e58b87b908dfa549324

Contents?: true

Size: 231 Bytes

Versions: 3

Compression:

Stored size: 231 Bytes

Contents

#!/usr/bin/env ruby

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

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pigato-0.1.5 examples/echo_worker.rb
pigato-0.1.3 examples/echo_worker.rb
pigato-0.1.2 examples/echo_worker.rb