⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (371 Bytes)
Bug #2339
» client.rb
pierre@mouraf.org (Pierre-Alexandre Meyer)
, 11/06/2009 02:44 AM
require
'drb/drb'
# The URI to connect to
SERVER_URI
=
"druby://localhost:8787"
# Start a local DRbServer to handle callbacks.
#
# Not necessary for this small example, but will be required
# as soon as we pass a non-marshallable object as an argument
# to a dRuby call.
DRb
.
start_service
timeserver
=
DRbObject
.
new_with_uri
(
SERVER_URI
)
puts
timeserver
.
get_current_time
« Previous
1
2
3
4
Next »
(1-1/4)
Loading...