Lifecycle

Client handle creation and destruction.

ti_create

Create a client instance.

Allocates and initializes internal resources. The returned handle must call ti_connect() to establish a connection to the server before use.

Returns: A non-NULL client handle. Returns NULL when internal memory allocation fails.

Note: Must be released with ti_destroy() when no longer needed.

See also: ti_destroy()

ti_destroy

Destroy a client instance.

Automatically disconnects (if connected) and releases all internal resources. Passing NULL is safe (no-op).

  • client: Client handle. May be NULL.

See also: ti_create()