Project

General

Profile

Bug #2339 ยป client.rb

 
1
require 'drb/drb'
2

    
3
# The URI to connect to
4
SERVER_URI="druby://localhost:8787"
5

    
6
# Start a local DRbServer to handle callbacks.
7
#
8
# Not necessary for this small example, but will be required
9
# as soon as we pass a non-marshallable object as an argument
10
# to a dRuby call.
11
DRb.start_service
12

    
13
timeserver = DRbObject.new_with_uri(SERVER_URI)
14
puts timeserver.get_current_time