Method: MTP::Protocol#receive
- Defined in:
- lib/mtp/protocol.rb
#receive ⇒ Object
239 240 241 242 243 244 245 |
# File 'lib/mtp/protocol.rb', line 239 def receive raw_packet = raw_read response = Container.parse(raw_packet) logger.debug(sprintf("<= %-8s: 0x%08x, 0x%04x - %s", (response.is_a?(Data) ? "DATA" : "RESPONSE"), response.transaction_id, response.code, response.code.name)) response end |