decode_client decodes all known packets in the client namespace
decode_component decodes all known packets in the component namespace
decode_sasl decodes a packet related to SASL authentication
decode_sasl2 decodes XEP-0388/XEP-0480 SASL2 packets
decode_stream will fully decode a stream packet
next_packet scans XML token stream for next complete XMPP stanza. Once the type of stanza has been identified, a structure is created to decode that stanza and returned.