class Pio::Arp

ARP parser and generator.

ARP parser and generator.

Public Class Methods

read(raw_data) click to toggle source
# File lib/pio/arp.rb, line 11
def self.read(raw_data)
  format = Format.read(raw_data)
  { Request.operation => Request,
    Reply.operation => Reply }.fetch(format.operation).create(format)
rescue
  raise Pio::ParseError, $ERROR_INFO.message
end