]> granicus.if.org Git - ejabberd/commit
XEP-0198: Check whether routed packets are stanzas
authorHolger Weiss <holger@zedat.fu-berlin.de>
Mon, 12 May 2014 17:20:25 +0000 (19:20 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Mon, 12 May 2014 17:20:25 +0000 (19:20 +0200)
commitf6da708b02bfe147a2d9ae7bd18db2a0ee702ad9
treebab184a8b4d82c61809dbbc4a33143eb374ad791
parent23fdf0e889b89abe020d7d920d844717cda99ca4
XEP-0198: Check whether routed packets are stanzas

Only stanzas are subject to stream management, so when XEP-0198 support
is enabled, we must distinguish them from non-stanza elements.  This
commit adds a send_packet/2 function that can be used in place of
send_stanza/2 or send_element/2 whenever a packet is delivered that
might or might not be a stanza.
src/ejabberd_c2s.erl