$ cnpm install native-dns-packet
Packet.parse(buffer) returns an instance of PacketPacket.write(buffer, packet) writes the given packet into the buffer,
truncating where appropriatevar Packet = function () {
this.header = {
id: 0,
qr: 0,
opcode: 0,
aa: 0,
tc: 0,
rd: 1,
ra: 0,
res1: 0,
res2: 0,
res3: 0,
rcode: 0
};
this.question = [];
this.answer = [];
this.authority = [];
this.additional = [];
this.edns_options = [];
this.payload = undefined;
};
package.json to include all authorsmaster branch to add License infoCopyright 2013 - present © cnpmjs.org | Home |