Class: Pixelflut::Server::Configuration
- Inherits:
-
Struct
- Object
- Struct
- Pixelflut::Server::Configuration
- Defined in:
- lib/pixelflut/server/configuration.rb
Instance Attribute Summary collapse
-
#command_limit ⇒ Object
Returns the value of attribute command_limit.
-
#host ⇒ Object
Returns the value of attribute host.
-
#keep_alive_time ⇒ Object
Returns the value of attribute keep_alive_time.
-
#peer_limit ⇒ Object
Returns the value of attribute peer_limit.
-
#port ⇒ Object
Returns the value of attribute port.
-
#read_buffer_size ⇒ Object
Returns the value of attribute read_buffer_size.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#command_limit ⇒ Object
Returns the value of attribute command_limit
5 6 7 |
# File 'lib/pixelflut/server/configuration.rb', line 5 def command_limit @command_limit end |
#host ⇒ Object
Returns the value of attribute host
5 6 7 |
# File 'lib/pixelflut/server/configuration.rb', line 5 def host @host end |
#keep_alive_time ⇒ Object
Returns the value of attribute keep_alive_time
5 6 7 |
# File 'lib/pixelflut/server/configuration.rb', line 5 def keep_alive_time @keep_alive_time end |
#peer_limit ⇒ Object
Returns the value of attribute peer_limit
5 6 7 |
# File 'lib/pixelflut/server/configuration.rb', line 5 def peer_limit @peer_limit end |
#port ⇒ Object
Returns the value of attribute port
5 6 7 |
# File 'lib/pixelflut/server/configuration.rb', line 5 def port @port end |
#read_buffer_size ⇒ Object
Returns the value of attribute 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
.default ⇒ Object
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_s ⇒ Object
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 |