Bytes Name ----- ---- 1 protocol_version n (Null-Terminated String) server_version 4 thread_id 8 scramble_buff 1 (filler) always 0x00 2 server_capabilities 1 server_language 2 server_status 13 (filler) always 0x00 ... 13 rest of scramble_buff (4.1)
137138139140141142143144145146147
} else { throw new IOException("unpexpected packet with field_count=" + body[0]); } } HandshakeInitializationPacket handshakePacket = new HandshakeInitializationPacket(); handshakePacket.fromBytes(body); logger.info("handshake initialization packet received, prepare the client authentication packet to send"); ClientAuthenticationPacket clientAuth = new ClientAuthenticationPacket(); clientAuth.setCharsetNumber(charsetNumber);
136137138139140141142143144145146
135136137138139140141142143144145