Sha256: f70021decefba1632e037722a82be080312d8c1533e09b4a63323fb2efed69a3
Contents?: true
Size: 524 Bytes
Versions: 2
Compression:
Stored size: 524 Bytes
Contents
module MaxCube module Messages module UDP class Parser # Get network address message. module MessageN private # Local keys without the common ones. N_KEYS = %i[ip_address gateway subnet_mask dns1 dns2].freeze # Mandatory keys. KEYS = (Parser::KEYS + N_KEYS).freeze def parse_udp_n(_body) N_KEYS.map do |k| [k, IPAddr.ntop(read(4))] end.to_h end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
maxcube-client-0.5.1 | lib/maxcube/messages/udp/type/n.rb |
maxcube-client-0.5.0 | lib/maxcube/messages/udp/type/n.rb |