Allowed items to use for myqtt_conf_get.

Enumerator
MYQTT_SOFT_SOCK_LIMIT 

Gets/sets current soft limit to be used by the library, regarding the number of connections handled.

Soft limit means it is can be moved to hard limit.

To configure this value, use the integer parameter at myqtt_conf_set. Example:

1 myqtt_conf_set (MYQTT_SOFT_SOCK_LIMIT, 4096, NULL);
MYQTT_HARD_SOCK_LIMIT 

Gets/sets current hard limit to be used by the library, regarding the number of connections handled.

Hard limit means it is not possible to exceed it.

To configure this value, use the integer parameter at myqtt_conf_set. Example:

1 myqtt_conf_set (MYQTT_HARD_SOCK_LIMIT, 4096, NULL);
MYQTT_LISTENER_BACKLOG 

Gets/sets current backlog configuration for listener connections.

Once a listener is activated, the backlog is the number of complete connections (with the finished tcp three-way handshake), that are ready to be accepted by the application. The default value is 5.

Once a listener is activated, and its backlog is configured, it can't be changed. In the case you configure this value, you must set it (myqtt_conf_set) after calling to the family of functions to create myqtt listeners (myqtt_listener_new).

To configure this value, use the integer parameter at myqtt_conf_set. Example:

1 myqtt_conf_set (MYQTT_LISTENER_BACKLOG, 64, NULL);
MYQTT_SKIP_THREAD_POOL_WAIT 

Allows to skip thread pool waiting on myqtt ctx finalization.

By default, when myqtt context is finished by calling myqtt_exit_ctx, the function waits for all threads running the in thread pool to finish. However, under some conditions, this may cause a dead-lock problem especially when blocking operations are triggered from threads inside the pool at the time the exit operation happens.

This parameter allows to signal this myqtt context to not wait for threads running in the thread pool.

To set the value to make myqtt ctx exit to not wait for threads in the pool to finish use:

1 myqtt_conf_set (ctx, MYQTT_SKIP_THREAD_POOL_WAIT, axl_true, NULL);