xmpp_conn_set_flags() provides features that people sometimes look for. Adding comment to examples will simplify the search.