Module: Thrift::Processor
- Defined in:
- lib/thrift_client/thrift/processor.rb
Instance Method Summary collapse
Instance Method Details
#write_result(result, oprot, name, seqid) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/thrift_client/thrift/processor.rb', line 3 def write_result(result, oprot, name, seqid) if @service oprot.(@service + ':' + name, MessageTypes::REPLY, seqid) else oprot.(name, MessageTypes::REPLY, seqid) end result.write(oprot) oprot. oprot.trans.flush end |