Sha256: e699c9168fd314a904e9b30746fd6998e736c64109a53f47ad0949d182cf0341

Contents?: true

Size: 523 Bytes

Versions: 5

Compression:

Stored size: 523 Bytes

Contents

# * George Moschovitis  <gm@navel.gr>
# (c) 2004-2005 Navel, all rights reserved.
# $Id: drb.rb 264 2005-02-23 13:46:55Z gmosx $

require 'drb'

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

Logger.debug 'Using Drb sessions.'

module N

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

5 entries across 5 versions & 1 rubygems

Version Path
nitro-0.11.0 lib/nitro/session/drb.rb
nitro-0.12.0 lib/nitro/session/drb.rb
nitro-0.13.0 lib/nitro/session/drb.rb
nitro-0.14.0 lib/nitro/session/drb.rb
nitro-0.15.0 lib/nitro/session/drb.rb