Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

ruby-1.9.2-drb

View client.rb
1 2 3
require 'drb'
d = DRbObject.new_with_uri('druby://m-mimura-4.local:12346')
d.hello "message"
View client.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
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
Something went wrong with that request. Please try again.