Sha256: de55c5b236df55ed741ef328644c9cdd1927b8c8902cdb23c9fbf8f025fe922c

Contents?: true

Size: 380 Bytes

Versions: 2

Compression:

Stored size: 380 Bytes

Contents

# encoding: utf-8

require 'bindata'

module Pio
  class Hello
    # OpenFlow 1.0 Hello message
    class Format < BinData::Record
      endian :big

      uint8 :ofp_version, value: 1
      uint8 :message_type, initial_value: 0, assert: -> { value == 0 }
      uint16 :message_length, initial_value: 8
      uint32 :transaction_id
      string :body  # ignored
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pio-0.8.1 lib/pio/hello/format.rb
pio-0.8.0 lib/pio/hello/format.rb