Package Exports
- native-dns-packet
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (native-dns-packet) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
native-dns-packet
Packet.parse(buffer)
returns an instance ofPacket
Packet.write(buffer, packet)
writes the given packet into the buffer, truncating where appropriate
var 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;
};