Permalink
Browse files

Changed all ports to 7632 (RNDA).

  • Loading branch information...
1 parent 2eb07d4 commit 292e1aa38adeff3feceaafcc25c990a8322d3f4b @jaymcgavren committed Oct 20, 2009
View
@@ -20,7 +20,7 @@ h2. Example
<pre>
require 'rinda/rinda'
- MY_URI = "druby://127.0.0.1:9999"
+ MY_URI = "druby://127.0.0.1:7632"
DRb.start_service
space = Rinda::TupleSpaceProxy.new(DRbObject.new(nil, MY_URI))
space.write(["foo", "bar"])
@@ -31,7 +31,7 @@ h2. Sample Scripts
Run test_server.rb, then any combination of clients and agents.
-Make sure to pass druby://HOST.IP.ADDRESS:PORT as the first command line to each script. druby://127.0.0.1:9999 is fine if you're only talking to the local host, but if you want to connect to 192.168.0.888 remotely, you *must* specify druby://192.168.0.888:9999 both on the client and 192.168.0.888 itself. (dRuby seems to want the actual IP, not "localhost" or "127.0.0.1".)
+Make sure to pass druby://HOST.IP.ADDRESS:PORT as the first command line to each script. druby://127.0.0.1:7632 is fine if you're only talking to the local host, but if you want to connect to 192.168.0.888 remotely, you *must* specify druby://192.168.0.888:7632 both on the client and 192.168.0.888 itself. (dRuby seems to want the actual IP, not "localhost" or "127.0.0.1".)
You'll need some gems installed for certain scripts:
@@ -1,7 +1,7 @@
require 'rubygems'
require 'babble'
require 'rinda/rinda'
-MY_URI = ARGV[0] || "druby://127.0.0.1:9999"
+MY_URI = ARGV[0] || "druby://127.0.0.1:7632"
DRb.start_service
space = Rinda::TupleSpaceProxy.new(DRbObject.new(nil, MY_URI))
loop do
@@ -2,7 +2,7 @@
require 'wx'
require 'rinda/rinda'
-MY_URI = ARGV[0] || "druby://127.0.0.1:9999"
+MY_URI = ARGV[0] || "druby://127.0.0.1:7632"
TIME_TO_LIVE = 10
class MouseClient < Wx::App
@@ -2,7 +2,7 @@
require 'rubygems'
require 'midiator'
-MY_URI = ARGV[0] || "druby://127.0.0.1:9999"
+MY_URI = ARGV[0] || "druby://127.0.0.1:7632"
DRb.start_service
space = Rinda::TupleSpaceProxy.new(DRbObject.new(nil, MY_URI))
@@ -2,7 +2,7 @@
require 'wx'
require 'rinda/rinda'
-MY_URI = ARGV[0] || "druby://127.0.0.1:9999"
+MY_URI = ARGV[0] || "druby://127.0.0.1:7632"
TIME_TO_LIVE = 10
class MouseClient < Wx::App
@@ -24,8 +24,8 @@ def on_init
def on_mouse_motion(event)
return unless event.dragging
- space.write ["Integer:x", event.x], TIME_TO_LIVE
- space.write ["Integer:y", event.y], TIME_TO_LIVE
+ space.write [:x, event.x], TIME_TO_LIVE
+ space.write [:y, event.y], TIME_TO_LIVE
end
def on_mouse_press(event); end
@@ -1,7 +1,7 @@
#OS X only.
require 'rinda/rinda'
require 'rbconfig'
-MY_URI = ARGV[0] || "druby://127.0.0.1:9999"
+MY_URI = ARGV[0] || "druby://127.0.0.1:7632"
DRb.start_service
space = Rinda::TupleSpaceProxy.new(DRbObject.new(nil, MY_URI))
@@ -1,5 +1,5 @@
require 'rinda/rinda'
-MY_URI = ARGV[0] || "druby://127.0.0.1:9999"
+MY_URI = ARGV[0] || "druby://127.0.0.1:7632"
DRb.start_service
space = Rinda::TupleSpaceProxy.new(DRbObject.new(nil, MY_URI))
loop do
@@ -1,5 +1,5 @@
require 'rinda/rinda'
-MY_URI = ARGV[0] || "druby://127.0.0.1:9999"
+MY_URI = ARGV[0] || "druby://127.0.0.1:7632"
DRb.start_service
space = Rinda::TupleSpaceProxy.new(DRbObject.new(nil, MY_URI))
STDIN.each {|line| space.write(["String", line])}
@@ -1,5 +1,5 @@
require 'rinda/rinda'
-MY_URI = ARGV[0] || "druby://127.0.0.1:9999"
+MY_URI = ARGV[0] || "druby://127.0.0.1:7632"
DRb.start_service
space = Rinda::TupleSpaceProxy.new(DRbObject.new(nil, MY_URI))
@@ -1,5 +1,5 @@
require 'rinda/rinda'
-MY_URI = ARGV[0] || "druby://127.0.0.1:9999"
+MY_URI = ARGV[0] || "druby://127.0.0.1:7632"
DRb.start_service
space = Rinda::TupleSpaceProxy.new(DRbObject.new(nil, MY_URI))
loop do
@@ -1,5 +1,5 @@
require 'rinda/rinda'
-MY_URI = ARGV[0] || "druby://127.0.0.1:9999"
+MY_URI = ARGV[0] || "druby://127.0.0.1:7632"
DRb.start_service
space = Rinda::TupleSpaceProxy.new(DRbObject.new(nil, MY_URI))
queries = [[ "*", 5, 2 ], [ "/", 3, 4 ], [ "+", 8, 2 ]]
@@ -1,4 +1,4 @@
require 'rinda/tuplespace'
-MY_URI = ARGV[0] || "druby://127.0.0.1:9999"
+MY_URI = ARGV[0] || "druby://127.0.0.1:7632"
DRb.start_service(MY_URI, Rinda::TupleSpace.new)
DRb.thread.join

0 comments on commit 292e1aa

Please sign in to comment.