weblogin1/node_modules/mysql/lib/protocol/packets/ComPingPacket.js
Kántor Dániel 0881028595 feltoltes
2023-01-27 11:54:37 +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);
};