config root man

Current Path : /compat/linux/proc/self/root/usr/local/share/examples/ruby18/drb/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/share/examples/ruby18/drb/gw_ct.rb

require 'drb/drb'

class Foo
  include DRbUndumped

  def foo(n)
    n + n
  end

  def bar(n)
    yield(n) + yield(n)
  end
end

DRb.start_service(nil)
puts DRb.uri

ro = DRbObject.new(nil, ARGV.shift)
ro[:tcp] = Foo.new
gets

it = ro[:unix]
p [it, it.foo(1)]
gets

p it.bar('2') {|n| n * 3}
gets



Man Man