ComPingPacket.js 292 B

12345678910111213
  1. module.exports = ComPingPacket;
  2. function ComPingPacket(sql) {
  3. this.command = 0x0e;
  4. }
  5. ComPingPacket.prototype.write = function(writer) {
  6. writer.writeUnsignedNumber(1, this.command);
  7. };
  8. ComPingPacket.prototype.parse = function(parser) {
  9. this.command = parser.parseUnsignedNumber(1);
  10. };