Sha256: 122ce743e0500ef7b3ebbaf49139f959d938c22b9468698dd42bccd9bb0be775

Contents?: true

Size: 249 Bytes

Versions: 3

Compression:

Stored size: 249 Bytes

Contents

#!/usr/bin/env ruby

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

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.8 examples/echo_worker.rb
pigato-0.1.7 examples/echo_worker.rb
pigato-0.1.6 examples/echo_worker.rb