MyQttConn * myqtt_conn_new6 ( MyQttCtx ctx,
const char *  client_identifier,
axl_bool  clean_session,
int  keep_alive,
const char *  host,
const char *  port,
MyQttConnOpts opts,
MyQttConnNew  on_connected,
axlPointer  user_data 
)

Allows to create a new MQTT connection to a MQTT* broker/server, forcing IPv6 transport.

Parameters
ctxThe context where the operation will take place.
client_identifierThe client identifier that uniquely identifies this MQTT client from others.
clean_sessionFlag to clean client session or to reuse the existing one.
keep_aliveKeep alive configuration in seconds after which the server/broker will close the connection if it doesn't detect any activity. Setting 0 will disable keep alive mechanism.
hostThe location of the MQTT server/broker
portThe port of the MQTT server/broker
optsOptional connection options. See myqtt_conn_opts_new
on_connectedAsync notification handler that will be called once the connection fails or it is completed. In the case this handler is configured the caller will not be blocked. In the case this parameter is NULL, the caller will be blocked until the connection completes or fails.
user_dataUser defined pointer that will be passed to the on_connected handler (in case it is defined).
Returns
A reference to the newly created connection or NULL if on_connected handler is provided. In both cases, the reference returned (or received at the on_connected handler) must be checked with myqtt_conn_is_ok.

References MYQTT_IPv6.