Class: GQTP::Connection::Thread::Client
- Inherits:
-
Object
- Object
- GQTP::Connection::Thread::Client
- Defined in:
- lib/gqtp/connection/thread.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#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 = nil, &block) ⇒ Object
- #write(*chunks, &block) ⇒ Object
Constructor Details
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
72 73 74 |
# File 'lib/gqtp/connection/thread.rb', line 72 def address @address end |
#port ⇒ Object
Returns the value of attribute port.
72 73 74 |
# File 'lib/gqtp/connection/thread.rb', line 72 def port @port end |
Instance Method Details
#close ⇒ Object
89 90 91 |
# File 'lib/gqtp/connection/thread.rb', line 89 def close @io.close end |
#read(size = nil, &block) ⇒ Object
85 86 87 |
# File 'lib/gqtp/connection/thread.rb', line 85 def read(size=nil, &block) @io.read(size, &block) end |
#write(*chunks, &block) ⇒ Object
81 82 83 |
# File 'lib/gqtp/connection/thread.rb', line 81 def write(*chunks, &block) @io.write(*chunks, &block) end |