Skip to content

Instantly share code, notes, and snippets.

@seki
Created November 26, 2009 21:26
Show Gist options
  • Save seki/243672 to your computer and use it in GitHub Desktop.
Save seki/243672 to your computer and use it in GitHub Desktop.
require 'drb/drb'
DRb.start_service
ro = DRbObject.new_with_uri('druby://localhost:54000')
ro.hello
require 'drb/drb'
class Hello
def hello
puts('Hello, World.')
end
end
DRb.start_service('druby://localhost:54000', Hello.new)
while true
sleep 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment