summaryrefslogtreecommitdiff
path: root/sample/drb/dqin.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sample/drb/dqin.rb')
-rw-r--r--sample/drb/dqin.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/sample/drb/dqin.rb b/sample/drb/dqin.rb
new file mode 100644
index 0000000..3ba1caa
--- /dev/null
+++ b/sample/drb/dqin.rb
@@ -0,0 +1,13 @@
+=begin
+ distributed Ruby --- store
+ Copyright (c) 1999-2000 Masatoshi SEKI
+=end
+
+require 'drb/drb'
+require 'dqlib'
+
+there = ARGV.shift || raise("usage: #{$0} <server_uri>")
+
+DRb.start_service
+queue = DRbObject.new(nil, there)
+queue.push(DQEntry.new(DRb.uri))