Sha256: 1c4871a50ed1b08de275a9f8b4dcd75d116a6be810277b39b88a56043a383361

Contents?: true

Size: 659 Bytes

Versions: 1

Compression:

Stored size: 659 Bytes

Contents

require 'pio/open_flow/error_message'
require 'pio/open_flow/hello_failed_code'
require 'pio/open_flow/message'
require 'pio/open_flow10/error/error_type10'

module Pio
  module OpenFlow10
    module Error
      # Hello failed error.
      class HelloFailed < OpenFlow::Message
        open_flow_header version: 1,
                         type: OpenFlow::ErrorMessage.type,
                         length: -> { header_length + 4 + description.length }

        error_type10 :error_type, value: -> { :hello_failed }
        hello_failed_code :error_code
        string :description, read_length: -> { length - header_length - 4 }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pio-0.30.1 lib/pio/open_flow10/error/hello_failed.rb