UNPKG

mysql

Version:

A node.js driver for mysql. It is written in JavaScript, does not require compiling, and is 100% MIT licensed.

13 lines (10 loc) 289 B
module.exports = ComPingPacket; function ComPingPacket() { this.command = 0x0e; } ComPingPacket.prototype.write = function(writer) { writer.writeUnsignedNumber(1, this.command); }; ComPingPacket.prototype.parse = function(parser) { this.command = parser.parseUnsignedNumber(1); };