#!/usr/local/bin/ruby -Ks
require 'web'

uri  = 'druby://localhost:7650'
name = 'rindasample'

api = Web::Interface::Rinda.new(:name => name, :uri => uri)

api.each {|req|
  rsp = Web::Response.new
  rsp.content_type = 'text/plain'
  
  rsp << Time.now.to_s << "\n"
  rsp << $$.to_s << "\n"
  rsp << req['text'].to_s << "\n"
  
  api.response req, rsp
}

