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 Method Summary collapse

Methods inherited from Pio::OpenFlow::Message

inherited, #initialize, method_missing, open_flow_header, read, #to_binary

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



41
42
43
# File 'lib/pio/open_flow13/packet_out.rb', line 41

def method_missing(method, *args)
  data.__send__(method, *args).snapshot
end

Instance Method Details

#dataObject



37
38
39
# File 'lib/pio/open_flow13/packet_out.rb', line 37

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