summaryrefslogtreecommitdiff
path: root/sample/drb/gw_s.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/drb/gw_s.rb')
-rw-r--r--sample/drb/gw_s.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/sample/drb/gw_s.rb b/sample/drb/gw_s.rb
new file mode 100644
index 0000000..f91249b
--- /dev/null
+++ b/sample/drb/gw_s.rb
@@ -0,0 +1,9 @@
+require 'drb/drb'
+require 'drb/unix'
+require 'drb/gw'
+
+DRb.install_id_conv(DRb::GWIdConv.new)
+gw = DRb::GW.new
+s1 = DRb::DRbServer.new(ARGV.shift, gw)
+s2 = DRb::DRbServer.new(ARGV.shift, gw)
+gets