not jump in-depth, the following I will teach high-speed look. See this methodThere are several places to be aware of:1) Ddlog used not to insist, I like a clean and refreshing console. So it's useless, because I'm not very dependent on all the logs. Instead of breakpoint console po xxx method, real-time to find problems fixing bugs2) Configure the XML stream stream to add a variety of buff to your long connection. Various equipment, various properties. OK, no kidding:), this configuration is v
to carry on the brain to fill, but seemingly temporarily cannot use, let it default.Original link PortalHere is a core of xmppframework: Multi Delegate (author exclusive, Worship!) ~[Xmppstream adddelegate:self Delegatequeue:dispatch_get_main_queue ()]; [Xmpproster adddelegate:self Delegatequeue:dispatch_get_main_queue ()];Add a sub delegate callback to the XML stream, in the current class, in the Mainthread queue,A sub delegate callback is made to the roster, in the current class, the main thr
XMPP protocol as an IM, its core is the message delivery, in the OpenFire server XMPP implementation, the message is encapsulated as packet object, so OpenFire server's core code is the client packet object monitoring and processing flow, We're going to take a look at OpenFire's message packet acceptance process today.
First, the OpenFire server needs to start a TCP/IP based listening
#-*-coding:utf-8-*-__author__='TSBC'ImportXMPPImport Time#Note the account information, must add the @ domain name formatFrom_user ='[email protected]'Password='A1b2c3d4'#you can add more than one recipientTo_user = ['[email protected]']msg="Hello! This is a test message! "defto_msg ():"""Instant Messaging messaging based on XMPP protocol, need to install XMPP library use OpenFire to build instant messaging
Today, I changed the "XMPP translation" series to my article. "XMPP translation" is an informative task. Because the translation is generally a chapter, if it is set as an essay, it will occupy a large number of home pages. In addition, there are not many people who need it, publishing an article does not affect sharing. You can go to the article/XMPP translation
XMPP 3920 Most reliable Chinese translation documents (ii) 2009-10-17 19:52
XML stream 4.1 OverviewStructured information that enables fast, asynchronous exchange-related small loads between presence-aware entities can have two basic elements: XML streams and XML sections. The terms are defined as follows: XML Stream definition: An XML stream is a container for exchanging XML elements between any two entities on a network. The beginning of
This document is a learning note based on the XMPP protocol video tutorial.Each client uses Jid (jabber identifier) as the identity, in the format [user "@"]domain["/" resource], whereDomain: Server domain name; User: Username; resource: the location or device belonging to the user, such as a mobile phone or a computerA user can connect to a unified XMPP server at the same time with a variety of resources,
, and pulltorefresh. the biggest advantage is that smack is encapsulated into a class, and the service is also a Singleton, with a simple structure. the disadvantage is that there is only simple chat and roster functions, and there is only a low-pixel layout. actually, the core is used several times.
4. EIM
Http://blog.csdn.net/shimiso/article/details/11225873/ (Csdn)
It is also based on asmack. The interface design cannot be viewed, but it still ha
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 maple communication services.There are multiple implementations of instant messaging, and XMPP is one of them.XMPP (XML, message, Presence, Protocol) is an extensible language-based protocol
Several assistive tools are required to build the XMPP environment1, XAMPPXAMPP (Apache+mysql+php+perl) is a powerful built-in XAMPP software station integration package.Many people have realized from their own experience that installing Apache servers is not an easy thing to do. It's even harder if you want to add MySQL, PHP, and Perl. XAMPP is a version of Apache that is easy to install and contains MySQL, PHP, and Perl. XAMPP is really easy to inst
At this stage of communication services, all kinds of standards have, so there will be unable to achieve interconnection, and XMPP (extensible Message and Presence Protocol) protocol, the realization of the entire timely Communication Service protocol interoperability. With this agreement, the use of any one organization or individual, even if the communication services, can be accessible to other users of
Label: I. Understanding XMPP Protocol (Standard) XMPP Instant Messaging Protocol SGIP SMS Gateway protocol This phone texting Mobile payment and Web payment 0x23232[0,1] 0x23232 0x23232 0x23232 Only protocol, there must be protocol documentation Second, the Environment configuration 1. Install MySQL 2. Modify the password for the MySQL account "SQLite (mobile platform), is no password directly connect
Summary
In the XMPP communication process, Asmack provides the packet component is iq,message,presence three kinds: IQ is used for query messages for message passing presence for state interaction they are all packet subclasses, The essence is the XML format used to encapsulate messages into responses for data exchange, which has good scalability.
Brief introduction
We take the Open source project Androidpn as an example:
ANDROIDPN (Android push N
A This is the product of the Jabber protocol and related technical articles that I have read roughly once, and some places are not necessarily accurate. Some of the code referenced in the article comes from an article on www.jabber.org.Two What is JabberJabber, like Icq,msn, is an Internet-based instant messaging system, but unlike these instant messaging software, it is an open instant messaging system and an XML Stream-based protocol. Used to exchange information, field status (presence), and
XMPP (extensible Messaging and Presence Protocol) is a network Instant Messaging protocol, which is based on XML and is widely used in instant messaging software, online game chat, web chat and web message push, Scenarios such as message push for mobile devices, such as Google's Gtalk, the League of Legends LOL game chat module.Because JavaScript on a Web browser cannot handle the TCP protocol directly, the XMPP
Transferred from: http://m.oschina.net/blog/82059The main purpose of this article is to analyze and contrast the most mainstream message push schemes on the Android platform, objectively reflect the advantages and disadvantages of these push schemes, and help us choose the most suitable implementation plan.Scenario 1,Using GCM Services (Google Cloud Messaging)Introduction: Google launched the cloud messaging service, the second generation of G2DM.Pros
Preface
Openfire + spark + smack can be considered for Java instant messaging solutions. Of course there are other options.
Openfire is an instant messaging server version based on the jabber protocol (XMPP). We recommend that you use version 3.8.1, which is the latest version and can find the downloaded source code online.
The instant messaging client can use spark2.6.3, which is currently the latest version of release. After testing, it is found tha
XMPP is a communication protocol. Because this is an open agreement, many real-time applications use this protocol in order to economize on development costs. The most commonly used combination of Android Asmack +openfire. Asmack is the Android version of Smack, which encapsulates the XMPP protocol and provides a rich API that simplifies operations. OpenFire is an open source IM server, based on
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 correspondi
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.