Class: GQTP::Backend::Eventmachine::Client
- Inherits:
-
Object
- Object
- GQTP::Backend::Eventmachine::Client
- Defined in:
- lib/gqtp/backend/eventmachine.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
- #read(size, &block) ⇒ Object
- #write(*chunks, &block) ⇒ Object
Constructor Details
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
79 80 81 |
# File 'lib/gqtp/backend/eventmachine.rb', line 79 def host @host end |
#port ⇒ Object
Returns the value of attribute port.
79 80 81 |
# File 'lib/gqtp/backend/eventmachine.rb', line 79 def port @port end |
Instance Method Details
#close ⇒ Object
95 96 97 |
# File 'lib/gqtp/backend/eventmachine.rb', line 95 def close @connection.close_connection_after_writing end |
#read(size, &block) ⇒ Object
91 92 93 |
# File 'lib/gqtp/backend/eventmachine.rb', line 91 def read(size, &block) @connection.read(size, &block) end |
#write(*chunks, &block) ⇒ Object
87 88 89 |
# File 'lib/gqtp/backend/eventmachine.rb', line 87 def write(*chunks, &block) @connection.write(*chunks, &block) end |