been standardized by IETF International Standards Organization.1 XMPP address and data structure 1.1 entity address www.2cto.com XMPP overall framework 1 is shown. In the figure, the addresses of various entities (such as XMPP customers, servers, and gateways) in the XMPP framework are called Jabber Identifier and JID
I recently read about the XMPP framework. Taking text chat as an example, the message to be sent is:
[HTML]View
Plaincopy
In the base, from is the message sent from the user, to is the message sent to the user, XMPP users are in the form of mailbox. Body is the message text we send.
Now, let's develop an iOS chat client program based on
is XMPP?
The predecessor of XMPP is Jabber, an open-source network instant communication protocol. XMPP has been standardized by IETF International Standards Organization. The core results of standardization are divided into two parts; the core XML Stream Transmission Protocol is based on the XML Stream Transmission instant messaging extension application. The c
protocol for the server side that enables it to talk to another, making it easier for developers to build client applications or to add functionality to a configured system at the heart of XMPPXMLThe definition of the transmission protocol allows XMPP to be in a more standardized platform than previous network communication protocols. With the help ofXMLEasy to parse and read, so that the
XMPP series (3) --- get friends list, add friends, and xmpp friends list
1. Heartbeat detection and disconnection Reconnection
Both the client and the server can set how often to send a heartbeat packet. If the other party does not return the correct pong information, the connection will be disconnected, and the reconnection function will be automatically added.
Juliet enters the message and presses the Send Button:Juliet's XMPP client sends her message to the a.com XMPP server.The a.com XMPP server opens a connection to the b.NET XMPP server.b.NET XMPP server sends messages to ROMEO. If
JID:The address of an XMPP entity, called Jabber Identifier or Jid, acts like an IP address. A valid Jid includes the node name, domain name resource name, in the format: Jid=[node ' @ ']domain['/' resource]Namespace for XMPP protocol:Jabber:iq:private-Private data storage for local user private settings, such as user notes.Jabber:iq:conference--General meetings for information sharing among multiple usersj
XMPP-IOS instant messaging development environment, xmpp-ios instant messaging1. Install MySQL
Sudo vi ~ /. Bash_profile
Enter I to enter the editing mode, and enter:
# mysqlalias mysql='/usr/local/mysql/bin/mysql'alias mysqladmin='/usr/local/mysql/bin/mysqladmin'# lsalias ls='ls -G'
Press ESC to exit the editing mode. Enter:
:wq
Save the modification content and exit and restart the terminal program.3. Mo
:[element attributeIntValueForName:@"age"];A lot of other information please see Working with elements pageXmppstream ConfigurationAn XMPP stream configuration initialization is divided into several sections:
Configure how to connect to Xmppserver
Join the agent
Join modules
Connection
Certification
Configure the connectionFor most people. This involves only one step-set the Myjid property of the stream.Like what:xmppStre
[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
Ios xmpp-based development-XMPPFramewok framework (1): Basic knowledge, xmpp-xmppframewok
Recently, the open source tt of the mogujie.com team made me interested in im. Then I found XMPPFramework on the Internet for study,
I have written the following series of tutorials for your reference. Please forgive me for your correction.
Directory Index
IOS development based on
Android interview technical points: xmpp knowledge preparation Socket server termination, Android xmpp
The previous section has basically completed communication between the server and the client, but does not implement persistent connection communication. This section fixes the bug.
1. for client code writing, we need
operating systems and browsers are different.4. Basic structureXMPP is a typical C/s architecture, not just 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.
users to send instant messages to anyone else on the internet, even if their operating system and browser are different4. Basic structureXMPP is a typical C/s architecture, not just 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
Internet users to send instant messages to anyone else on the internet, even if their operating system and browser are different4. Basic structureXMPP is a typical C/s architecture, not just 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
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
Xmpp notes: user network connection and friend management, xmpp network connection
In xmppUser connection moduleIncluding display of user online and offline information, user logon, and user registration;Friend ModuleIncluding adding friends, deleting friends, and displaying friends lists.
XmppStream is the class responsible for data transmission in xmpp. during
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/
Just take a look at the import steps for XMPP-related frameworks for easy viewing laterI. Framework Address1.
xmppframework
frame address available in other languageshttp://xmpp.org/xmpp-software/libraries/2. Download the Xmppframework framework:Https://github.com/robbiehanson/XMPPFramework3.git CloneHttps://github.com/robbiehanson/XMPPFramework.gitTwo. Import the relevant framework
Cocoa
Build an XMPP environment and build an xmpp EnvironmentXMPP Environment Construction
1> several auxiliary tools are required to build an XMPP environment:
Java
Openfire is developed in Java, so we need to install the Java environment first.
XAMPP
XAMPP (Apache + MySQL + PHP + PERL) is a powerful software package for building XAMPP software stations
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.