DziennikOcen/node_modules/mysql/lib/protocol/packets/ComPingPacket.js
User Kill3rs4 84150f8404 Initial D
2022-01-11 20:18:26 +01:00

13 lines
289 B
JavaScript

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);
};