Sha256: 3a73d5b081444bb3345651276205ee2407998dc27f9fa86de467190daa2db265

Contents?: true

Size: 525 Bytes

Versions: 6

Compression:

Stored size: 525 Bytes

Contents

# * George Moschovitis  <gm@navel.gr>
# (c) 2004-2005 Navel, all rights reserved.
# $Id: drb.rb 1 2005-04-11 11:04:30Z gmosx $

require 'drb'

require 'glue/attribute'
require 'nitro/session'

Logger.debug 'Using Drb sessions.'

module Nitro

class Session
	
	# The address of the Session DRb server.

	cattr_accessor :drb_address, '127.0.0.1'
	
	# The port of the Session DRb server.

	cattr_accessor :drb_port, 9069 

end

Session.store = DRbObject.new(
	nil, 
	"druby://#{Session.drb_address}:#{Session.drb_port}"
) 

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
nitro-0.16.0 lib/nitro/session/drb.rb
nitro-0.17.0 lib/nitro/session/drb.rb
nitro-0.18.0 lib/nitro/session/drb.rb
nitro-0.18.1 lib/nitro/session/drb.rb
nitro-0.19.0 lib/nitro/session/drb.rb
nitro-0.20.0 lib/nitro/session/drb.rb