Hello,
Simple usecase for 1 context and many multiple connections:
ctx = xmpp_ctx_new(NULL, NULL);
conn1 = xmpp_conn_new(ctx);
conn2 = xmpp_conn_new(ctx);
xmpp_conn_set_jid(conn1, jid);
xmpp_conn_set_pass(conn1, pass);
xmpp_connect_client(conn1, host, 0, conn_handler, ctx);
xmpp_conn_set_jid(conn2, jid);
xmpp_conn_set_pass(conn2, pass);
xmpp_connect_client(conn2, host, 0, conn_handler, ctx);
xmpp_run(ctx); /* or run_once() */
But I wonder if you will be able to hadle 10k connections without performance issues. Libstrophe is not optimized to handle so many connections. Anyway, it would be great if you shared with your results.