examples: mention about xmpp_conn_set_flags()
xmpp_conn_set_flags() provides features that people sometimes look for. Adding comment to examples will simplify the search.
This commit is contained in:
@@ -104,6 +104,13 @@ int main(int argc, char **argv)
|
|||||||
/* create a connection */
|
/* create a connection */
|
||||||
conn = xmpp_conn_new(ctx);
|
conn = xmpp_conn_new(ctx);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* also you can disable TLS support or force legacy SSL
|
||||||
|
* connection without STARTTLS
|
||||||
|
*
|
||||||
|
* see xmpp_conn_set_flags() or examples/basic.c
|
||||||
|
*/
|
||||||
|
|
||||||
/* setup authentication information */
|
/* setup authentication information */
|
||||||
xmpp_conn_set_jid(conn, argv[1]);
|
xmpp_conn_set_jid(conn, argv[1]);
|
||||||
xmpp_conn_set_pass(conn, argv[2]);
|
xmpp_conn_set_pass(conn, argv[2]);
|
||||||
|
|||||||
@@ -154,6 +154,13 @@ int main(int argc, char **argv)
|
|||||||
/* create a connection */
|
/* create a connection */
|
||||||
conn = xmpp_conn_new(ctx);
|
conn = xmpp_conn_new(ctx);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* also you can disable TLS support or force legacy SSL
|
||||||
|
* connection without STARTTLS
|
||||||
|
*
|
||||||
|
* see xmpp_conn_set_flags() or examples/basic.c
|
||||||
|
*/
|
||||||
|
|
||||||
/* setup authentication information */
|
/* setup authentication information */
|
||||||
xmpp_conn_set_jid(conn, jid);
|
xmpp_conn_set_jid(conn, jid);
|
||||||
xmpp_conn_set_pass(conn, pass);
|
xmpp_conn_set_pass(conn, pass);
|
||||||
|
|||||||
@@ -109,6 +109,13 @@ int main(int argc, char **argv)
|
|||||||
/* create a connection */
|
/* create a connection */
|
||||||
conn = xmpp_conn_new(ctx);
|
conn = xmpp_conn_new(ctx);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* also you can disable TLS support or force legacy SSL
|
||||||
|
* connection without STARTTLS
|
||||||
|
*
|
||||||
|
* see xmpp_conn_set_flags() or examples/basic.c
|
||||||
|
*/
|
||||||
|
|
||||||
/* setup authentication information */
|
/* setup authentication information */
|
||||||
xmpp_conn_set_jid(conn, argv[1]);
|
xmpp_conn_set_jid(conn, argv[1]);
|
||||||
xmpp_conn_set_pass(conn, argv[2]);
|
xmpp_conn_set_pass(conn, argv[2]);
|
||||||
|
|||||||
Reference in New Issue
Block a user