Enum anj_conn_status_t

Enum Documentation

enum anj_conn_status_t

This enum represents the possible states of a server connection.

Values:

enumerator ANJ_CONN_STATUS_INITIAL

Initial state of the client after startup.

Anjay Lite will automatically attempt to transition to either ANJ_CONN_STATUS_BOOTSTRAPPING or ANJ_CONN_STATUS_REGISTERING, depending on the configuration.

If the provided configuration is invalid or incomplete, the client will immediately transition to ANJ_CONN_STATUS_INVALID.

enumerator ANJ_CONN_STATUS_INVALID

Provided configuration is invalid and a connection cannot be established.

This state is transient — the client will immediately transition to ANJ_CONN_STATUS_FAILURE to indicate a permanent failure.

enumerator ANJ_CONN_STATUS_FAILURE

Indicates that bootstrap or registration has permanently failed (i.e., all configured retry attempts have been exhausted).

In this case, reinitialization of the Anjay Lite client is required to attempt a new connection cycle. This can be done by calling anj_core_restart.

enumerator ANJ_CONN_STATUS_BOOTSTRAPPING

Bootstrap process is ongoing.

enumerator ANJ_CONN_STATUS_BOOTSTRAPPED

Bootstrapping process has finished successfully.

enumerator ANJ_CONN_STATUS_REGISTERING

Registering process is ongoing.

enumerator ANJ_CONN_STATUS_REGISTERED

Registering/Updating process has finished successfully.

enumerator ANJ_CONN_STATUS_SUSPENDED

Connection is suspended. If the suspension was initiated by the server the client will remain suspended until the Disable Timeout (Resource /1/x/5) expires. If the suspension was initiated by the client application no action is taken until user decides to resume or timeout occurs.

enumerator ANJ_CONN_STATUS_ENTERING_QUEUE_MODE

Client is entering Queue Mode.

enumerator ANJ_CONN_STATUS_QUEUE_MODE

Client is in Queue Mode: new requests still can be sent to the server, but no new messages are received.