Sha256: 76513fcc141737aba70c2e2e944f30b925a90e3ef5613cf0cb45ef8a8d5104e4

Contents?: true

Size: 385 Bytes

Versions: 59

Compression:

Stored size: 385 Bytes

Contents

# -*- coding: binary -*-
module Dap
module Proto
module DTLS


class RecordLayer < BitStruct
  unsigned :content_type, 8, 'Content type'
  unsigned :version, 16, 'Version'
  unsigned :epoch, 16, 'Epoch'
  unsigned :sequence, 48, 'Sequence number'
  unsigned :payload_length, 16, 'Payload length'
  rest :payload

  def valid?
    payload_length == payload.length
  end
end
end
end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
dap-1.3.1 lib/dap/proto/dtls.rb
dap-1.3.0 lib/dap/proto/dtls.rb
dap-1.2.9 lib/dap/proto/dtls.rb
dap-1.2.8 lib/dap/proto/dtls.rb
dap-1.2.7 lib/dap/proto/dtls.rb
dap-1.2.6 lib/dap/proto/dtls.rb
dap-1.2.5 lib/dap/proto/dtls.rb
dap-1.2.4 lib/dap/proto/dtls.rb
dap-1.2.3 lib/dap/proto/dtls.rb
dap-1.2.2 lib/dap/proto/dtls.rb
dap-1.2.1 lib/dap/proto/dtls.rb
dap-1.2.0 lib/dap/proto/dtls.rb
dap-1.0.2 lib/dap/proto/dtls.rb
dap-1.0.1 lib/dap/proto/dtls.rb
dap-1.0.0 lib/dap/proto/dtls.rb
dap-0.1.24 lib/dap/proto/dtls.rb
dap-0.1.23 lib/dap/proto/dtls.rb
dap-0.1.22 lib/dap/proto/dtls.rb
dap-0.1.21 lib/dap/proto/dtls.rb
dap-0.1.20 lib/dap/proto/dtls.rb