I. XMPP protocol
XMPP (Extensible messaging and presence Protocol) is a subset XML protocol based on standard universal markup language. It inheritsXMLFlexible development in the environment. Therefore, XMPP-based applications are highly scalable. The predecessor of XMPP is jabber.
1. Several important concepts in XMPP:
Jid: Jabber ID. The XMPP network has one or more jids, which are composed of [email protected]/study: nodes, domains, and resources (the jid with resources is the complete jid, the jid without resources is a raw jid), where nodes and resources are optional, and the domain is required. The Department Branch of jid identifies a specific client XMPP link. For XMPP clients, each link is assigned a resource.
XMPP defines three roles,Clients, servers, and gateways.
Communication can take place between any two of the three.
ServerIt also undertakes the client information record, connection management and information routing functions.
GatewayIt is interconnected with heterogeneous instant messaging systems. heterogeneous systems can include SMS, MSN, and ICQ.
All the XML texts sent by the client or server are joined together, from <stream> to </stream> to form a complete XML document.
XML Stream: The stream tag is the so-called XML Stream.
XML section: The XML elements such as <message>... </message> in the center of <stream> and </stream> are the so-called XML stanza.
2. How XMPP works:
Ii. XMPP Environment
1. Server Software
2. Client Software
Iii. XMPP practices
1. Develop IM software with XMPP on iOS
2. Develop IM software with XMPP on Android
Not complete...
XMPP protocol and practices