Sha256: cd5678388d92bf2cb0a260a88e8d5a555956a2720d2f57d32cf8af2b7f91c84e

Contents?: true

Size: 438 Bytes

Versions: 3

Compression:

Stored size: 438 Bytes

Contents

module Manymo
  class ADBStream
    attr_accessor :local_id, :remote_id
    attr_accessor :systemtype, :banner
    attr_accessor :window_length, :spoofed_ack_count

    def initialize(local_id, open_data)
      @spoofed_ack_count = 0
      @local_id = local_id
      @system_type, @banner = open_data.split(':')
    end

    def quick_ack
      @spoofed_ack_count += 1
      ADBPacket.build("OKAY", remote_id, local_id)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
manymo-2.0.0.beta3 lib/manymo/adb_stream.rb
manymo-2.0.0.beta2 lib/manymo/adb_stream.rb
manymo-2.0.0.beta lib/manymo/adb_stream.rb