Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,21 @@
|
|||
require 'drb/drb'
|
||||
|
||||
# The URI for the server to connect to
|
||||
URI="druby://localhost:8787"
|
||||
|
||||
class TimeServer
|
||||
|
||||
def get_current_time
|
||||
return Time.now
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
# The object that handles requests on the server
|
||||
FRONT_OBJECT = TimeServer.new
|
||||
|
||||
$SAFE = 1 # disable eval() and friends
|
||||
|
||||
DRb.start_service(URI, FRONT_OBJECT)
|
||||
# Wait for the drb server thread to finish before exiting.
|
||||
DRb.thread.join
|
||||
Loading…
Add table
Add a link
Reference in a new issue