Method: Net::DNS::RR.parse_packet
- Defined in:
- lib/net/dns/rr.rb
.parse_packet(data, offset) ⇒ Object
Same as RR.parse, but takes an entire packet binary data to perform name expansion. Default when analizing a packet just received from a network stream.
Return an instance of appropriate class and the offset pointing at the end of the data parsed.
145 146 147 148 |
# File 'lib/net/dns/rr.rb', line 145 def self.parse_packet(data, offset) o = allocate o.send(:new_from_binary, data, offset) end |