Class: Pixelflut::Server::Configuration

Inherits:
Struct
  • Object
show all
Defined in:
lib/pixelflut/server/configuration.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#command_limitObject

Returns the value of attribute command_limit

Returns:

  • (Object)

    the current value of command_limit



5
6
7
# File 'lib/pixelflut/server/configuration.rb', line 5

def command_limit
  @command_limit
end

#hostObject

Returns the value of attribute host

Returns:

  • (Object)

    the current value of host



5
6
7
# File 'lib/pixelflut/server/configuration.rb', line 5

def host
  @host
end

#keep_alive_timeObject

Returns the value of attribute keep_alive_time

Returns:

  • (Object)

    the current value of keep_alive_time



5
6
7
# File 'lib/pixelflut/server/configuration.rb', line 5

def keep_alive_time
  @keep_alive_time
end

#peer_limitObject

Returns the value of attribute peer_limit

Returns:

  • (Object)

    the current value of peer_limit



5
6
7
# File 'lib/pixelflut/server/configuration.rb', line 5

def peer_limit
  @peer_limit
end

#portObject

Returns the value of attribute port

Returns:

  • (Object)

    the current value of port



5
6
7
# File 'lib/pixelflut/server/configuration.rb', line 5

def port
  @port
end

#read_buffer_sizeObject

Returns the value of attribute read_buffer_size

Returns:

  • (Object)

    the current value of read_buffer_size



5
6
7
# File 'lib/pixelflut/server/configuration.rb', line 5

def read_buffer_size
  @read_buffer_size
end

Class Method Details

.defaultObject



13
14
15
# File 'lib/pixelflut/server/configuration.rb', line 13

def self.default
  new(nil, 1234, 1, 1024, 10, 8)
end

Instance Method Details

#to_sObject



17
18
19
20
21
22
23
# File 'lib/pixelflut/server/configuration.rb', line 17

def to_s
  "bind: #{host}:#{port}"\
    ", keep-alive-time: #{keep_alive_time}"\
    ", read-buffer-size: #{read_buffer_size}"\
    ", command-limit: #{command_limit}"\
    ", peer-limit: #{peer_limit}"
end