AMQ::Protocol::Frame
# File lib/amq/client/framing/io/frame.rb, line 11 11: def self.decode(io) 12: header = io.read(7) 13: type, channel, size = self.decode_header(header) 14: data = io.read(size + 1) 15: payload, frame_end = data[0..2], data[1, 1] 16: # TODO: this will hang if the size is bigger than expected or it'll leave there some chars -> make it more error-proof: 17: # BTW: socket#eof? 18: raise NoFinalOctetError.new if frame_end != AMQ::Protocol::Frame::FINAL_OCTET 19: self.new(type, payload, channel) 20: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.