Skip to content

Instantly share code, notes, and snippets.

@takkanm
Created November 19, 2010 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takkanm/706260 to your computer and use it in GitHub Desktop.
Save takkanm/706260 to your computer and use it in GitHub Desktop.
ruby-1.9.2-drb
require 'drb'
d = DRbObject.new_with_uri('druby://m-mimura-4.local:12346')
d.hello "message"
require 'drb'
class Hello
def hello(message)
puts message
end
end
begin
DRb.start_service('druby://:12346', Hello.new)
puts DRb.uri
sleep
rescue Object, SystemExit=> e
p e.backtrace
raise e
rescue => e
puts e
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment