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
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
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.Three roles, clients, servers, and gateways are defined in
In the Nginx reverse proxy mode, the page loading is incomplete or the 502 bad gateway appears directly.
There are many cases of 502 bad Gateway, most of which are related to the setting of the Nginx timeout problem. The following is a discussion of a situation that is relatively rare but has to be noted.
Presence Environment
Nginx work in reverse proxy mode, listening to non-80 ports (this is important
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 client and put most of the work on the server sideThree roles, clie
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 client and put most of the work on the server sideThree ro
elasticity: XMPP In addition to the use of instant messaging, but also used in network management, content feeds, collaboration tools, file sharing, gaming, remote system monitoring and so On.Security: the XMPP protocol server can be independent of the public XMPP network (for example, within an intranet), and the reliable security of technologies such as SASL a
Xmpp sorting notes: Quick environment configuration (with installation package included) and xmpp installation package
Although the xmpp framework of huanxin is very popular, it also has some drawbacks. Some of the code of the huanxin framework is not open-source, and the charging mode is not scientific. The number of users is always lower than that of the Free L
Xmpp is connected to the server and authenticated successfully. xmpp is used for authentication.
* XMPP features that all requests are implemented through proxy** Because xmpp communicates data through the network server, all requests are submitted to the server for processing.** After the server is processed, it stops
XMPP protocol for instant messaging underlying writing (zero)-nonsense and preparation before the beginning, xmpp instant messaging
I want to write a summary for a long time, but I have been busy and have no time to calm down and do such a thing.
I once told my eldest brother Qin that I didn't have the open source spirit, but because there were too many things and I didn't have time to write a blog. I didn'
Recently looked at the framework for XMPP, as an example of text chat, the message that needs to be sent is:Kizhong from is the message from which user, to is sent to who, the user of XMPP is in the form of a mailbox. Body is the text of the message we send.Well, in this case, we will develop an XMPP-based iOS chat client program, first we need
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 XMPP. First, we
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
XMPP client development (1), xmpp client development
Smack can be used for XMPP client development. After downloading Smack and importing relevant jar files, you can start XMPP client development.
The following code connects the client to the Tigase server and logs on to the server based on the user name and password.
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
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
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.
If you write your own chat function, you have
I recently read about the XMPP framework. Taking text chat as an example, the message to be sent is:
[HTML] View
Plaincopy
Message Type = "Chat" From = Kang@server.com" To = Test@server.com" >
Body > Helloword Body >
Message>
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 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.