ios-senior11-Instant Messaging 1 (Environment configuration)

Source: Internet
Author: User

Instant communication

1. What is instant Messaging?

Instant Messaging is currently the most popular mode of communication on the Internet, and a variety of instant messaging software is emerging, and service providers are providing more and more rich communication service functions.

Instant Messaging is implemented in a variety of ways, such as XMPP, ring-letter, and cloud-melting.

2. What is XMPP?

XMPP (Xml,message,presence,protocol) is an Extensible Markup Language (XML)-based protocol that can be used for instant messaging (IM). —————— Extensible Message Processing Site Protocol

3.XMPP advantages?

(1). Open : The XMPP protocol is developed by the JSF Open source community organization and is not owned by any organization or individual, fundamentally guaranteeing its openness.

(2). Standard : The Internet Engineering Working Group formally listed XMPP in 2002 as an accredited real-time communication and present technology.

(3). Distributed Network Architecture : Although XMPP is based on the Cliect/server architecture, the XMPP protocol itself has no such limitations. The architecture of the network is very similar to e-mail, but it is not combined with any particular network architecture and is widely applicable.

(4). The XMPP protocol has good extensibility : The application based on XML has good semantic integrity and extensibility.

(5). XMPP has a good elasticity : XMPP In addition to the applications available in Instant messaging, it can also be used in network management, content feeds, collaboration tools, file sharing, gaming, remote system monitoring, etc.

(6). Security : XMPP uses the TLS (Transport Layer Security) protocol as an encryption method for communication channels in both Client-to-server and Server-to-server communications to ensure the security of communications.

Principle:

Implementing instant Messaging requires at least one server side and two clients. Below we need to prepare the environment:

1.XMPP Server 2.XMPP Client (secondary debugging)

Installation: XAMPP is an Apache distribution that is easy to install and contains mysql,php, and Perl. XAMPP is really easy to install and use: Just download, unzip, start.

XAMPP Environment Configuration:

Step One:

Step Two:

Step Three:

Step Four:

Step Five:

Step Six:

OpenFire Installation:

Step One:

Step Two:

Step Three:

Step Four:

Step Five:

Step Six:

To create a database step:

Step One:

Step Two:

Step Three:

Step Four:

Step Five:

Step Six:

Step Seven:

Step Eight:

Step Nine:

Step Ten:

Step 11:

Step 12:

Step 13:

Setting up an XMPP client environment using spark, secondary debugging: One design standard for XMPP systems is the need to support simple clients.

In fact, the XMPP system architecture has only a few limitations on clients. The features that an XMPP client must support are:

1. Communicate with the XMPP server via TCP sockets;

2. Parse well-organized XML packets;

3. Understand the message data type;

Step 14:

Configuration success!!!

ios-senior11-Instant Messaging 1 (Environment configuration)

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.