axl_bool valvula_connection_is_ok ( ValvulaConnection connection)

Allows to get current connection status.

This function will allow you to check if your valvula connection is actually connected. You must use this function before calling valvula_connection_new to check what have actually happen.

You can also use valvula_connection_get_message to check the message returned by the valvula layer. This may be useful on connection errors. The free_on_fail parameter can be use to free valvula connection resources if this valvula connection is not connected. This operation will be done by using valvula_connection_close.

connectionthe connection to get current status.
current connection status for the given connection

References valvula_mutex_lock(), and valvula_mutex_unlock().

Referenced by valvula_connection_ref_internal(), valvula_readline(), and valvulad_run_config().