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

STDERR.puts Time.now.to_s

api = Web::Interface::AUTO.new
STDERR.puts api.inspect

gw  = Web::Interface::Rinda.new(:name => 'rindasample', :uri => 'druby://localhost:7650')
STDERR.puts gw.inspect

api.each {|req|
  STDERR.puts req.inspect
  rsp = gw.forward(req)
  STDERR.puts rsp.inspect
  api.response req, rsp
}

STDERR.puts "request end"

