Files
HackFlowy/node_modules/mysql/lib/protocol/packets/ComPingPacket.js
T
2013-03-25 06:08:51 +05:30

13 lines
292 B
JavaScript

module.exports = ComPingPacket;
function ComPingPacket(sql) {
this.command = 0x0e;
}
ComPingPacket.prototype.write = function(writer) {
writer.writeUnsignedNumber(1, this.command);
};
ComPingPacket.prototype.parse = function(parser) {
this.command = parser.parseUnsignedNumber(1);
};