In this section, we start from the Protocol core of asmack and learn about XMPP. Understanding XMPP is an important reason for learning the source code of asmack.
This article summarizes XMPP the definitive guide building real-time applications with jabber technologies.
1. What can you do with XMPP?
XMPP (Extensible messaging and presence Protocol) is mainly used to transmit XML data.
A typical XMPP implementation generally includes the following services ):
1) channel encryption ). Although encrypted communication is not necessary, it is essential to establish security software.
2) authentication ). Users need to communicate through XMPP. First, they need to perform logon authentication.
3) Launch/present (presence ). Is it mainly responsible for "are friends online? Not online? Also, I went online, I went offline, and so on.
4) roster/contact list ).
5) one-to-one messaging ).
6) multi-party messaging ).
7) notifications ). Broadcast is a bit like a pop-up box in the lower right corner of QQ. Of course, you can customize the topic
8) service discovery ). Service Discovery: you can know what services other nodes support.
9) capabilities advertisement ). As a supplement to service discovery.
10) structured data forms ). Data similar to HTML forms can be exchanged with other nodes.
11) workflow managerment)
12) Peer-to-Peer rich media sessions. This is used to transmit multimedia data and for voice, video, and file transmission.
The above is a typical service that must be supported to implement the XMPP protocol library.
2. Application
The following applications can be implemented using XMPP:
1) instant messaging ).
2) groupchat ).
3) games ).
4) system control ).
5) locate.
6) cloud computing middleware.
7) content publishing system.
8) IP Phone (VoIP ).
9) identify the system.
3. History (omitted)
XMPP overview of asmack Development Series