class MySQLHandshakeResponse41Packet implements MySQLPacket {

    @Override
    public void write(final MySQLPacketPayload payload) {
        payload.writeInt4(capabilityFlags);
        payload.writeInt4(maxPacketSize);
        payload.writeInt1(characterSet);
        payload.writeReserved(23);
        payload.writeStringNul(username);
        writeAuthResponse(payload);
        writeDatabase(payload);
        writeAuthPluginName(payload);
    }

    public  MySQLHandshakeResponse41Packet(final MySQLPacketPayload payload);

}