isEOFPacket method
Returns the truth of the payload for an EOF package.
Implementation
bool isEOFPacket() {
if (payload is MySQLPacketEOF) {
return true;
}
// Some servers send OK with header 0xfe and payloadLength < 9 as EOF
if (payload is MySQLPacketOK &&
payloadLength < 9 &&
(payload as MySQLPacketOK).header == 0xfe) {
return true;
}
return false;
}