Class: Pio::OpenFlow13::Hello

Inherits:
Pio::OpenFlow::Message show all
Defined in:
lib/pio/open_flow13/hello.rb

Overview

OpenFlow 1.3 Hello message parser and generator

Defined Under Namespace

Classes: Body, Element

Constant Summary collapse

VERSION_BITMAP =
1

Instance Attribute Summary

Attributes inherited from Pio::OpenFlow::Message

#format

Instance Method Summary collapse

Methods inherited from Pio::OpenFlow::Message

#method_missing, method_missing, open_flow_header, read, #to_binary

Methods included from Pio::OpenFlow::Flags

#_define_flags, #_flags, #define_flags_32bit, #flags_16bit, #flags_32bit

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Pio::OpenFlow::Message

Instance Method Details

#elementsObject



49
50
51
# File 'lib/pio/open_flow13/hello.rb', line 49

def elements
  body.elements
end

#supported_versionsObject



53
54
55
56
57
# File 'lib/pio/open_flow13/hello.rb', line 53

def supported_versions
  supported_versions_list.map do |each|
    "open_flow1#{each - 1}".to_sym
  end
end