Class: Nut::Service
- Inherits:
-
RxIO::Service
- Object
- RxIO::Service
- Nut::Service
- Defined in:
- lib/nut/service.rb
Overview
Service Class
Constant Summary collapse
- DEFAULT_ADDR =
Defaults
'localhost'
- DEFAULT_PORT =
23280
Instance Attribute Summary collapse
-
#request_handler ⇒ Object
readonly
Attribute Access.
Instance Method Summary collapse
-
#initialize(addr = DEFAULT_ADDR, port = DEFAULT_PORT, ssl_params = nil, request_handler) ⇒ Service
constructor
Construct: Builds a Service set to listen for incoming connections @ addr on port.
Constructor Details
#initialize(addr = DEFAULT_ADDR, port = DEFAULT_PORT, ssl_params = nil, request_handler) ⇒ Service
Construct: Builds a Service set to listen for incoming connections @ addr on port.
31 32 33 34 35 36 37 38 |
# File 'lib/nut/service.rb', line 31 def initialize addr = DEFAULT_ADDR, port = DEFAULT_PORT, ssl_params = nil, request_handler # Super super addr, port, Handler, ssl_params # Set Request Handler @request_handler = request_handler end |
Instance Attribute Details
#request_handler ⇒ Object (readonly)
Attribute Access
23 24 25 |
# File 'lib/nut/service.rb', line 23 def request_handler @request_handler end |