Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/rentals.picotech.app/public_html/node_modules/mysql2/lib/commands/ drwxr-xr-x |
Viewing file: Select action/file-type: 'use strict'; const Command = require('./command'); const CommandCode = require('../constants/commands'); const Packet = require('../packets/packet'); // TODO: time statistics? // usefull for queue size and network latency monitoring // store created,sent,reply timestamps class Ping extends Command { constructor(callback) { super(); this.onResult = callback; } start(packet, connection) { const ping = new Packet( 0, Buffer.from([1, 0, 0, 0, CommandCode.PING]), 0, 5 ); connection.writePacket(ping); return Ping.prototype.pingResponse; } pingResponse() { // TODO: check it's OK packet. error check already done in caller if (this.onResult) { process.nextTick(this.onResult.bind(this)); } return null; } } module.exports = Ping; |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0039 ]-- |