Sha256: 1b25c143decd077565b67b433be3530eca38177002483ea00aae4f15ddf01b14
Contents?: true
Size: 412 Bytes
Versions: 1
Compression:
Stored size: 412 Bytes
Contents
require 'bindata' module Pio module OpenFlow # enum ofp_hello_failed_code class HelloFailedCode < BinData::Primitive ERROR_CODES = { incompatible: 0, permissions_error: 1 }.freeze endian :big uint16 :error_code def get ERROR_CODES.invert.fetch(error_code) end def set(value) self.error_code = ERROR_CODES.fetch(value) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pio-0.30.1 | lib/pio/open_flow/hello_failed_code.rb |