OpenFire, of course you can also choose your database type. such as Oracle, SQL Server, MySQL, and so on. If the openfire does not have a JDBC connection driver, you need to add the JDBC driver that connects to the database, and the driver is placed in the C:\Program files\openfire\lib directory.8, select the feature configuration, the default can be9, Administrator mail, you can skip this step10. Complete InstallationGo to the Administrator console page11, enter the http://127.0.0.1:9090/login
=Self.friends.text; //Get friend nameAppdelegate *Delegate=[uiapplication Sharedapplication].Delegate; Xmppjid* jid=[Xmppjid Jidwithstring:name]; if([Delegate. rosterstorage Userexistswithjid:jid Xmppstream:Delegate. Stream]) {NSLog (@"friends already exist."); }Else{ //Add Friends[Delegate. Roster Subscribepresencetouser:jid]; }}To learn more about the small partners, you can click to view the source code , run the test yourself.Inquiries or technical exchanges, please join the official
1. Identity Authentication
The standard XMPP verification method is SASL. The simple method of Jabber is to send the IQ package, and the xmlns is jabber: IQ: Auth. In reality, many servers only support the traditional jabber method instead of SASL. For example, I chose jive messenger. The general process of identity authentication is to first use the IQ package to check whether the user exists, and then send the user name and password in the past.
information from your friends) if(Message.getfrom (). Contains (Touserid)) {if(Message.getbody (). Length () > 0) { //Gets the user, message, time, instring[] args =Newstring[] {touserid, message.getbody ()}; //out of the handler to show the message .Android.os.Message msg =handler. Obtainmessage (); Msg.what= 1; Msg.obj=args; Msg.sendtotarget (); } } } }); }});Code to send the message://Send MessageStr
actual use of the module for pruning:#import "XMPP.h"//List the modules you ' re using here. #import "XMPPReconnect.h" #import "XMPPRoster.h" #import " XMPPRosterCoreDataStorage.h "#import" XMPPvCardTempModule.h "#import" XMPPvCardAvatarModule.h "#import" XMPPvCardCoreDataStorage.h "#import" XMPPCapabilities.h "#import" XMPPCapabilitiesCoreDataStorage.h "#import" XMPPMUC.h "#import" XMPPRoomCoreDataStorage.h "There are also some problems, due to the fact that there are no dependent libraries re
Real solution to File Transfer Using XMPP Asmack
In the process of using Asmack, file transmission is a huge obstacle that hinders me from moving forward. Baidu and Google cannot be resolved. By accident, I suddenly looked back and solved this problem. Therefore, set this post to record for yourself, and hope to help the Later users. I hope that I can make the same instant communication and send various rich media. Next I will see how to implement fil
IM, instantmessaging, instant Messaging.Now, there are a number of companies that provide instant messaging capabilities on the market. such as: full-time, cloud, Jong communication, cloud, ring letter, etc., from the Internet a search, can search out a lot of. Perhaps you think, how to develop an IM system so simple, why so many companies have done so well? Actually, these products, in fact, are based on a long time ago, an open source technology, Jabber.Jabber is an Instant Messaging server te
Development notes-Android instant messaging APP Based on XMPP (2) and xmppandroid
After a few days, the application login and registration sections have been improved. Of course, this is just a personal feeling.
Today,All are dry goods!
First,No large piece of code; Second,Not found on the InternetFinally, let youSave development time! This is why the second serialization will be sent several days later.
Since there are no large pieces of code, the Ge
Tag: Database res connection track DMI exploits Lin Import errorThis article is mainly about how to use the command line to properly configure MySQL.First Open the terminal:1. An alias for MySQLAlias Mysql=/usr/local/mysql/bin/mysql2. Create MySQL admin admin (for late login)Alias Mysqladmin=/usr/local/mysql/bin/mysqladmin3. Set the root account passwordmysqladmin-u Root Password initial password4. Connect to the databaseMysql-u root-p (Prompt to enter just password)5. Create a OpenFire database
1. Ubuntu has ejabberd in the source and can be installed directly through the Apt-getInstall Ejabberd2. After the installation is complete, you can access the background page via the browser, the default port is 5280http:// server address: 5280/admin3. This time, you need to provide a username and password, you can register the user by command Ejabberdctl,Ejabberdctl Register admin localhost passwordThis time the default domain name is localhost, you can modify the domain name by modifying the
SELECT groupdescription from MyGroup WHERE groupname=?
Jdbcgroupprovider.groupcountsql
SELECT Count (*) from MyGroup
Jdbcgroupprovider.loadadminssql
SELECT username from Mygroupuser WHERE groupname=? and isadmin= ' Y '
Jdbcgroupprovider.loadmemberssql
SELECT username from Mygroupuser WHERE groupname=? and isadmin= ' N '
Jdbcgroupprovider.usergroupssql
SELECT groupName from Mygroupuser WHERE username=?
I record technology video address: https://edu.csdn.net/lecturer/1899 Welcome to watch.
One, what is the socket socket essentially provides the endpoint of the process communication. Before a process communicates, both parties must first create an endpoint, otherwise there is no way to establish a connection and communicate with each other. Just like before the phone call, both sides must each have a telephone. In the intranet, each socket is described in a half correlation: (protocol, local add
I. Preparations
Procedure: Database> Server> Client
First configure the database, because the server needs to connect to the database at startup, then configure the server, and finally configure the client2. Configure the database
Select MySQL database
1. Find the MySQL database installation package with the. DMG suffix.
2. Open the installation package and you will see the following three files.
3. Directly install MySQL
4. Install Syste
Jabber: IQ: Private -- private data storage, used for private setting information of local users, such as user remarks.
Jabber: IQ: Conference-a general meeting used for information sharing among multiple usersJabber: X: Encrypted-encrypted message, used to send encrypted messagesJabber: X: expire -- message terminationJabber: IQ: Time -- client timeJabber: IQ: Auth-Simple user authentication, which is generally used for authentication between server
Through wildfire and LINQ, Gtalk, MSN, and QQ can be combined in one client. The following are my operation steps:You can also see:Http://lizongbo.googlepages.com/wildfire_linq
Download this document in Word format (with a complete screenshot ):Http://lizongbo.googlepages.com/wildfire_linq.zip
The required software is:
A. JDK 1.5.0 _ 09(Source:Http://java.sun.com/javase/downloads/index.jsp)B. XMPP (jabber)
Based on instant messaging and LBS technology (II): XMPP protocol summary and open-source solutions (Internet address)
The second article mainly summarizes the XMPP protocol and why XMPP is used. Finally, it introduces the XMPP Java open-source solution: openfire + smack + spark.
Location Awareness Service Based on in
used. Finally, it introduces the XMPP Java open-source solution: openfire + smack + spark.
Location Awareness Service Based on instant messaging and LBS technology (III): Building an openfire SERVER + testing two IM clients (Internet address)
The third article explains in detail the XMPP-based openfire service setup and the use of two heterogeneous XMPP-based de
Application Development Technology: including map application development.
2. openfire server: open-source Java server program based on XMPP protocol.
3. Smack Development Library: a Java development kit that encapsulates the XMPP protocol on the client. This project uses asmack Library (suitable for smack optimized version with Android OS ).
The impleme
| Font size subscription
As mentioned in the previous blog, information push is implemented in Android. One of the more mature solutions is implemented using XMPP protocol. The androidpn project is an open-source project that uses the XMPP protocol to push information. Here we will introduce how to use it.
Features of apndroid push notification:
Quick integration: provides a faster way to use than c2dm, av
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.