XMPP protocol and practices

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.