XMPP (Scalable Message Processing site protocol) is based on the Extensible Markup Language (XML) protocol, which is used for instant messaging (IM) and online field probing. It promotes quasi-real-time operations between servers. This protocol may eventually allow Internet users to send instant messages to others on the Internet, even if their operating systems are different from those in browsers.
The predecessor of
small data transmission rate is higher, because there is no need to send and receive data confirmation, so UDP real-time better.Know the difference between TCP and UDP, it is not difficult to understand why the use of TCP transmission protocol MSN than UDP transmission file slow, but can not say that QQ communication is not safe, because the programmer can manually verify the data sent and received by UDP, For example, the sender of each packet number and then by the receiver to verify AH what,
Parsing XMPP protocol analysis and application XMPP is an XML-based protocol that inherits the flexible development in the XML environment. Therefore, XMPP-based applications are highly scalable. After the extension, XMPP can send extended information to meet user requirements, and create application processes such as
This section describes the principles and related information of the XMPP protocol.
XMPP protocol Introduction
XMPP (Extensible Messageing and Presence Protocol: Extensible message and existing Protocol) is one of the four mainstream IM (IM: instant messaging, instant messaging) protocols. The other three are: instant messaging and space protocol (IMPP), space a
Objectivehttp://blog.csdn.net/shimiso/article/details/8816558The Java field of Instant Messaging solutions can be considered openfire+spark+smack. There are other options, of course.OpenFire is an Instant Messaging server-side version that is based on the Jabber Protocol (XMPP), which is currently recommended to use the 3.8.1 version, which is currently the latest version and can be found on the web for downloaded source code.Instant Messaging client
Http://fqj183-8041380.blog.163.com/blog/static/39955797201301052742170/
Hope everyone can study and help each other.
When developing Android and iPhone applications, we often need to push various notification messages from the server to the mobile client in real time, the iPhone already has a relatively simple and perfect push notification solution, which can be implemented on the Android platform but is
1. XMPP protocol and OpenFireThe XMPP protocol is a standard protocol in the IM domain, with reference to http://xmpp.org and rfc6120,rfc6121,rfc6122 and other related documents. http://xmpp.org/xmpp-protocols/XMPP protocol implementation, there are many open source, server-side reference http://xmpp.org/
small data transmission rate is higher, because there is no need to send and receive data confirmation, so UDP real-time better.Know the difference between TCP and UDP, it is not difficult to understand why the use of TCP transmission protocol MSN than UDP transmission file slow, but can not say that QQ communication is not safe, because the programmer can manually verify the data sent and received by UDP, For example, the sender of each packet number and then by the receiver to verify AH what,
[Android XMPP] Learning Materials Collection stickers (Continuous updates) and androidxmpp
Series 1:
Introduction and deployment of openfire Based on xmpp openfire smack [1]
Introduction and use of smack class libraries based on xmpp openfire smack [2]
Android client development based on xmpp openfire smack [3]
Anal
), and XML-based, open extensible Communication and Presentation Protocol (XMPP) protocol (often called Jabber protocol).The industry has tried many times to unify the standards of major IM Vendors (AOL, Yahoo, and Microsoft) without success, and every IM continues to use its own protocols.2. Compliance with XMPP Instant Messenger protocolDesign an Instant Messaging protocol that is used all over the world
I. Import the XMPP framework
Download XMPPFramework FrameGithub:xmppframework
Import a dependent framework
CocoaLumberjack: Log Frame
CocoaAsyncSocket: the underlying network frameworkNeed to add CFNetwork Security frame dependencies (XCode 6+ no import required)
KissXML: XML parsing frameworkNeed to add libxml2.dylib frame dependenciesYou need to specify the following compilation options:Other Linker Flags =-LXML2Header
should I do? Install Java Runtime installation files in "Server/jdk-7u45-macosx-x64.dmg" 4. Configure OpenFire "To configure the database (create a openfire database in MySQL dedicated to the OpenFire server) "Import openfire database table script file "Configure the OpenFire administrator password 5. Use the client to log on to the OpenFire server "Information" account name of the system = Username + @ + server name: teacher.local [Email protected] "When you log in, you can configure th
This article translates the overview of the XMPP framework section in the XMPP frameworkIntroducedThe framework is divided into 2 parts:1. XMPP Core section2. xmpp extension (ROSTER,XEP ' s, optional support tools, etc.)XMPP core implementation of
1. Basic steps: First import the XMPP framework, configure the environment-"Since we are using OC's XMPP framework, we need to bridge the development of Swift." The specific method is to create a C-based. h header file, and then add the header file of the language that we need to compile OC to contain this. h file;-"Then import the following library files, in the head file selection pathFor example, to set
XMPP Client library smack version 4.0.6 developmentCHSZS, reprint need to indicate. Blog home: Http://blog.csdn.net/chszsThe characteristics of Smack library1. Extremely easy to use, powerful APISending a text message to a user requires only a few lines of code:Abstractxmppconnection connection = new Xmpptcpconnection ("Mtucker", "Password", "jabber.org"); Connection.connect (); Connection.login (); Chat chat = chatmanager.getinstancefor (connection).
Series One:OpenFire introduction and deployment based on XMPP openfire smack development [1]Introduction and use of smack class library based on XMPP openfire smack development [2]Development of Androidclient based on XMPP openfire smack [3]The principle analysis and practice of Android message push technology based on XMPP
iOS development and expansion Chapter-XMPP Brief IntroductionFirst, instant communication Brief introduction1. Brief descriptionInstant Messaging Technology (IM) enables users to chat online in real time. If you want to send a message, the user needs to open a small window to let the user and his friends enter the information and let the conversation both see what they're talking about.There are many IM systems, such as AOL IM, Yahoo IM, MSN and QQ, t
iOS development and expansion Chapter-XMPP Brief IntroductionFirst, instant communication Brief introduction1. Brief descriptionInstant Messaging Technology (IM) enables users to chat online in real time. If you want to send a message, the user needs to open a small window to let the user and his friends enter the information and let the conversation both see what they're talking about.There are many IM systems, such as AOL IM, Yahoo IM, MSN and QQ, t
XMPP implements user logon and logoffLogin:Steps:* Login is implemented in Appdelegate
1. Initialize Xmppstream
2. Connect to the server [pass a Jid]
3. After the connection to the service is successful, then send the password authorization
4. After successful authorization, send "online" message
One: Import the framework, according to the previous article to import the corresponding library and fileTwo: Define a member varia
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.