Class: Thrift::FramedTransport
- Inherits:
-
BaseTransport
- Object
- BaseTransport
- Thrift::FramedTransport
- Defined in:
- lib/hypertable/thrift_transport_monkey_patch.rb
Instance Method Summary collapse
-
#initialize(transport, read = true, write = true) ⇒ FramedTransport
constructor
A new instance of FramedTransport.
- #open ⇒ Object
- #reset_state ⇒ Object
Constructor Details
#initialize(transport, read = true, write = true) ⇒ FramedTransport
Returns a new instance of FramedTransport.
11 12 13 14 15 16 |
# File 'lib/hypertable/thrift_transport_monkey_patch.rb', line 11 def initialize(transport, read=true, write=true) reset_state @transport = transport @read = read @write = write end |
Instance Method Details
#open ⇒ Object
24 25 26 27 |
# File 'lib/hypertable/thrift_transport_monkey_patch.rb', line 24 def open reset_state @transport.open end |
#reset_state ⇒ Object
18 19 20 21 22 |
# File 'lib/hypertable/thrift_transport_monkey_patch.rb', line 18 def reset_state @rbuf = '' @wbuf = '' @index = 0 end |