See: Description
PacketCollector
PacketListener
API specification for Smack, an Open Source XMPP client library.
The XMPPConnection class is the main entry point for the API.
XMPPConnection