src/libguac/user-handshake.c
/**
 * Logs a reasonable explanatory message regarding handshake failure based on
 * the current value of guac_error.
 *
 * @param user
 *     The guac_user associated with the failed Guacamole protocol handshake.
 */
Logs a reasonable explanatory message regarding handshake failure based on
the current value of guac_error.

@param user
The guac_user associated with the failed Guacamole protocol handshake.
Logs a reasonable explanatory message regarding handshake failure based on the current value of guac_error . @param user The guac_user associated with the failed Guacamole protocol handshake .
static void guac_user_log_handshake_failure(guac_user* user) {
    if (guac_error == GUAC_STATUS_CLOSED)
        guac_user_log(user, GUAC_LOG_DEBUG,
                "Guacamole connection closed during handshake");
    else if (guac_error == GUAC_STATUS_PROTOCOL_ERROR)
        guac_user_log(user, GUAC_LOG_ERROR,
                "Guacamole protocol violation. Perhaps the version of "
                "guacamole-client is incompatible with this version of "
                "libguac?");
    else
        guac_user_log(user, GUAC_LOG_WARNING,
                "Guacamole handshake failed: %s",
                guac_status_string(guac_error));
}
static void guac_user_log_handshake_failure ( guac_user * user ) { if ( guac_error == GUAC_STATUS_CLOSED ) guac_user_log ( user , GUAC_LOG_DEBUG , " " ) ; else if ( guac_error == GUAC_STATUS_PROTOCOL_ERROR ) guac_user_log ( user , GUAC_LOG_ERROR , " " " " " " ) ; else guac_user_log ( user , GUAC_LOG_WARNING , " " , guac_status_string ( guac_error ) ) ; }
Logs a reasonable explanatory message regarding handshake failure based on
 the current value of guac_error.
Logs a reasonable explanatory message regarding handshake failure based on the current value of guac_error .