Class: XKoon::Client
- Inherits:
-
RxIO::Client
- Object
- RxIO::Client
- XKoon::Client
- Defined in:
- lib/xkoon/client.rb
Overview
Client Class
Constant Summary collapse
- DEFAULT_ADDR =
Defaults
'localhost'
- DEFAULT_PORT =
23255
Instance Attribute Summary collapse
-
#processor ⇒ Object
readonly
Attribute Accessors.
Instance Method Summary collapse
-
#initialize(processor, addr = DEFAULT_ADDR, port = DEFAULT_PORT, ssl_params = nil) ⇒ Client
constructor
Construct: Builds a Client around a given processor implementation, set to connect to addr on port.
Constructor Details
#initialize(processor, addr = DEFAULT_ADDR, port = DEFAULT_PORT, ssl_params = nil) ⇒ Client
Construct: Builds a Client around a given processor implementation, set to connect to addr on port.
31 32 33 34 35 36 37 38 |
# File 'lib/xkoon/client.rb', line 31 def initialize processor, addr = DEFAULT_ADDR, port = DEFAULT_PORT, ssl_params = nil # Super super addr, port, Handler, ssl_params # Set Processor @processor = processor end |
Instance Attribute Details
#processor ⇒ Object (readonly)
Attribute Accessors
19 20 21 |
# File 'lib/xkoon/client.rb', line 19 def processor @processor end |