With the information technology and network communication technology development, the instant messaging system application has rapidly developed. All sorts of instant messaging product emerge in endlessly, more typical have QQ, MSN, GTALK etc, their appearance made that a new way of communication with information network as the carrier takes place and improved the efficiency of people's communication, and reduced the cost of communication at the same time .But, today's various instant messaging system uses a different agreement between users of the system, make different system between users can't communicate. XMPP (Extensible Messaging and Presence Protocol) appear solved this problem.This thesis studies the XMPP protocol technology and its system structure, discussed the XMPP protocol address space, data transmission structure, and the process of establishing a communications link. Through comparing various traditional instant messaging system, this thesis analyzes the advantage of XMPP protocol. XMPP is formulated by oss organization , the agreement based on XML language, its open characteristics between enables developers to competing with each other, and promoted the instant communications technology progress and development, meanwhile has altered the instant messaging systems interconnected status between cannot. XMPP protocol based on the structure of the system to support distributed and modular system architecture. So easy to expand the function of the system. It is based on the above advantages, XMPP protocol instant communication system network information process becomes an essential part.Through the XMPP protocol for further research and instant messaging system features in-depth analysis, this thesis designs and realizes the XMPP protocol based on real-time communication system. The development of the instant communication systems with open source software system for Ejabberd server, and adopt Gloox library as client software development foundation. Ejabberd XMPP protocol is based on the real-time communication server, adopt Erlang/OTP development, its characteristic is cross-platform, fault tolerance, cluster and modular. It is the scalability one of the best XMPP server, support distributed server, has the fault-tolerant processing ability. Gloox is compiled using C++ and the XMPP protocol client cross-platform based library, provides perfect XMPP protocol communications support, and encapsulates the bottom XMPP core agreement stipulated XMPP communication standard, make most developers need not again entangled in the details of bottom communication.Instant communication systems based on the modular thought, facilitate function expansion and secondary development. This system user XML language as a network data transmission language, so that the client out of bondage, realize the language the client diversity. The XMPP protocol based on XML quarter based on the transmission technology realized the news of instant communication transceiver, register management, and attend information exchange on the foundation of basic function, and simulation with other instant communication systems on interactive process. Through the system test show that the design and implementation of the basic functions of the system integrity, stability, and friendly interface is concise, meet the basic function of instant communication systems and needs, and verified XMPP protocol based on with other instant communication system the inter-communication function. |