XMPP:XMPP is an XML-based point-to-point communication protocol, the extensible Messaging and Presence Protocol (extensible Communication and Presentation Protocol).
XMPP can be used for service class real-time communication, representation and XML data element churn in the demand response service. XMPP is based on the Jabber protocol, while Jabber is an open protocol commonly used in instant messaging.
Basic structure.
XML is a typical C/s architecture, not like most instant messaging software, using peer-to-client architecture, which means that in most cases, when two clients are communicating, their messages are delivered through the server. With this architecture, the main purpose is to simplify the client and put most of the work on the server side.
Three roles, clients, servers, and gateways are defined in XMPP. Communication can occur bidirectional between any two of these three.
The server also assumes the client information record, connection management and information routing function. The gateway undertakes the interconnection with the heterogeneous instant communication system, and the heterogeneous system can include SMS (SMS), MSN,ICQ and so on.
The basic network form is that a single client connects to a single server over TCP/IP and then transmits the XML stream on top.
Demo Download: http://download.csdn.net/detail/shaoting19910730/9178475
XMPP Instant Messaging