Sha256: 998e69f2afbfeecc1fdeab828b4063a39a0617992d664970edafdae1b23e9fdc

Contents?: true

Size: 396 Bytes

Versions: 5

Compression:

Stored size: 396 Bytes

Contents

require 'pio/open_flow/message'

module Pio
  module OpenFlow10
    # OpenFlow 1.0 Echo Request and Reply message.
    module Echo
      # OpenFlow 1.0 Echo Request message.
      class Request < OpenFlow::Message
        open_flow_header version: 1, message_type: 2
        string :body, read_length: -> { message_length - 8 }

        alias_method :user_data, :body
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pio-0.30.0 lib/pio/open_flow10/echo/request.rb
pio-0.29.0 lib/pio/open_flow10/echo/request.rb
pio-0.28.1 lib/pio/open_flow10/echo/request.rb
pio-0.28.0 lib/pio/open_flow10/echo/request.rb
pio-0.27.2 lib/pio/open_flow10/echo/request.rb