Find file History
Pull request Compare This branch is 1 commit ahead, 60 commits behind jaymcgavren:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
..
Failed to load latest commit information.
examples
README.textile
rinda_test.png

README.textile

Rinda

Rinda lets you set up a “distributed blackboard”, a bucket that network clients can write objects to and take objects from. That’s it – the rest is up to your imagination.

Rinda Documentation

http://www.ruby-doc.org/stdlib/libdoc/rinda/rdoc/index.html

Or:

    ri DRb.start_service
  
    ri Rinda::TupleSpaceProxy

Example

    require 'rinda/rinda'
    MY_URI = "druby://127.0.0.1:7632"
    DRb.start_service 
    space = Rinda::TupleSpaceProxy.new(DRbObject.new(nil, MY_URI))
    space.write(["foo", "bar"])
    key, value = space.take([/foo/, nil])

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: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:

    sudo gem install babble
    sudo gem install wxruby
    sudo gem install midiator