Class: Pio::OpenFlow::Header

Inherits:
BinData::Record show all
Defined in:
lib/pio/open_flow/header.rb

Overview

OpenFlow message header parser

Instance Method Summary collapse

Instance Method Details

#to_bytesObject



20
21
22
23
24
25
# File 'lib/pio/open_flow/header.rb', line 20

def to_bytes
  [version,
   type,
   message_length,
   transaction_id].map(&:to_bytes).join(', ')
end