るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.099秒)

別のキーワード

  1. rexml/document new
  2. rexml/document write
  3. rexml/document clone
  4. rexml/document to_s
  5. rexml/document node_type

検索結果

drb/gw (38030.0)

drb 通信を中継するゲートウェイ(DRb::GW)と、 中継に必要なオブジェクト識別子変換クラス(DRb::GWIdConv)、 および DRb::DRbObject への拡張が含まれています。

...信ができます。


以下の URL も参照してください。
* http://www2a.biglobe.ne.jp/~seki/ruby/drbssh.html

=== Example
この例は drb/gw.rb に含まれているものです。

foo.rb
require 'drb/drb'

class Foo
include DRbUndumped
def initialize(name, peer=nil)...
...require 'drb/gw'
require 'drb/unix'

DRb.install_id_conv(DRb::GWIdConv.new)

front = DRb::GW.new

s1 = DRb::DRbServer.new('drbunix:/tmp/gw_b_a', front)
s2 = DRb::DRbServer.new('drbunix:/tmp/gw_b_c', front)

s1.thread.join
s2.thread.join

gw_a.rb
require 'drb/unix'
require...
...ice("drbunix:/tmp/gw_a", obj)

robj = DRbObject.new_with_uri('drbunix:/tmp/gw_b_a')
robj[:a] = obj

DRb.thread.join

gw_c.rb
require 'drb/unix'
require_relative 'foo'

foo = Foo.new('c', nil)

DRb.start_service("drbunix:/tmp/gw_c", nil)

robj = DRbObject.new_with_uri("drbun...