Class: Pio::OpenFlow13::PacketOut

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

Overview

OpenFlow 1.3 PacketOut message parser and generator

Defined Under Namespace

Classes: InPort

Instance Attribute Summary

Attributes inherited from Pio::OpenFlow::Message

#format

Instance Method Summary collapse

Methods inherited from Pio::OpenFlow::Message

#initialize, method_missing, open_flow_header, read, #to_binary

Methods included from Pio::OpenFlow::Flags

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

Constructor Details

This class inherits a constructor from Pio::OpenFlow::Message

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args) ⇒ Object



43
44
45
46
# File 'lib/pio/open_flow13/packet_out.rb', line 43

def method_missing(method, *args)
  bindata_value = data.__send__(method, *args)
  bindata_value.try(:snapshot) || bindata_value
end

Instance Method Details

#dataObject



39
40
41
# File 'lib/pio/open_flow13/packet_out.rb', line 39

def data
  @data ||= Pio::Parser.read(raw_data)
end