Module: ThriftHelpers::Server::TransportInterface
- Included in:
- ThriftHelpers::Server
- Defined in:
- lib/thrift_client/server.rb
Instance Method Summary collapse
- #flush ⇒ Object
- #read(sz) ⇒ Object
- #read_all(sz) ⇒ Object
- #read_byte ⇒ Object
- #read_into_buffer(buffer, size) ⇒ Object
- #timeout ⇒ Object
- #timeout=(timeout) ⇒ Object
- #write(buf) ⇒ Object (also: #<<)
Instance Method Details
#flush ⇒ Object
94 95 96 |
# File 'lib/thrift_client/server.rb', line 94 def flush transport.flush end |
#read(sz) ⇒ Object
73 74 75 |
# File 'lib/thrift_client/server.rb', line 73 def read(sz) transport.read(sz) end |
#read_all(sz) ⇒ Object
85 86 87 |
# File 'lib/thrift_client/server.rb', line 85 def read_all(sz) transport.read_all(sz) end |
#read_byte ⇒ Object
77 78 79 |
# File 'lib/thrift_client/server.rb', line 77 def read_byte transport.read_byte end |
#read_into_buffer(buffer, size) ⇒ Object
81 82 83 |
# File 'lib/thrift_client/server.rb', line 81 def read_into_buffer(buffer, size) transport.read_into_buffer(buffer, size) end |
#timeout ⇒ Object
102 103 104 |
# File 'lib/thrift_client/server.rb', line 102 def timeout transport.timeout end |
#timeout=(timeout) ⇒ Object
98 99 100 |
# File 'lib/thrift_client/server.rb', line 98 def timeout=(timeout) transport.timeout = timeout if transport.respond_to?(:timeout=) end |
#write(buf) ⇒ Object Also known as: <<
89 90 91 |
# File 'lib/thrift_client/server.rb', line 89 def write(buf) transport.write(buf) end |