require'drb/drb'require'drb/unix'class Foo
include DRbUndumped
deffoo(n)
n + n
enddefbar(n)yield(n) + yield(n)endend
DRb.start_service('drubyunix:',nil)
puts DRb.uri
ro = DRbObject.new(nil,ARGV.shift)
ro[:unix] = Foo.new
gets
it = ro[:tcp]
p [it, it.foo(1)]
gets
p it.bar('2') {|n| n *3}
gets