Sha256: a89d35b8ffa8524048975fea28f24558bb964af3a59ba0b2fb6620183b6ba52d

Contents?: true

Size: 535 Bytes

Versions: 3

Compression:

Stored size: 535 Bytes

Contents

# * George Moschovitis  <gm@navel.gr>
# (c) 2004-2005 Navel, all rights reserved.
# $Id: drb.rb 182 2005-07-22 10:07:50Z 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

3 entries across 3 versions & 1 rubygems

Version Path
nitro-0.21.2 lib/nitro/session/drb.rb
nitro-0.21.0 lib/nitro/session/drb.rb
nitro-0.22.0 lib/nitro/session/drb.rb