Sha256: 00eb17194b68de7448ad8bf528c2a023f255bb419734728e4d26078539085394

Contents?: true

Size: 545 Bytes

Versions: 8

Compression:

Stored size: 545 Bytes

Contents

module Pio
  module OpenFlow
    # Error message parser
    class Error
      def self.read(binary)
        version = OpenFlowHeaderParser.read(binary).ofp_version
        error_parser = case version
                       when 1
                         Pio::OpenFlow10::Error
                       when 4
                         Pio::OpenFlow13::Error
                       else
                         fail "Unsupported OpenFlow version: #{version}"
                       end
        error_parser.read binary
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pio-0.30.0 lib/pio/open_flow/error.rb
pio-0.29.0 lib/pio/open_flow/error.rb
pio-0.28.1 lib/pio/open_flow/error.rb
pio-0.28.0 lib/pio/open_flow/error.rb
pio-0.27.2 lib/pio/open_flow/error.rb
pio-0.27.1 lib/pio/open_flow/error.rb
pio-0.27.0 lib/pio/open_flow/error.rb
pio-0.26.0 lib/pio/open_flow/error.rb