const char * myqtt_conn_get_host ( MyQttConn connection)

Returns the actual host this connection is connected to.

In the case the connection you have provided have the MyQttRoleMasterListener role (myqtt_conn_get_role), that is, listener connections that are waiting for connections, the function will return the actual host used by the listener.

You must not free returned value. If you do so, you will get unexpected behaviours.

connectionthe connection to get host value.
the host the given connection is connected to or NULL if something fail.

Referenced by myqtt_tls_verify_cert().