Recently, when I saw a penguin fight, I suddenly remembered a previous idea: developing an im similar to email,
At that time, the idea was that penguin was so powerful that a single person or company could not beat it if I started IM from the beginning. because Penguin's servers are very large, it is difficult for small companies to reach that scale in a short time. but what if there is a group of companies?
As with the current email, many companies can do it and have their own customer re
XMPP Client library Smack version 4.0.6Chszs, reprint need to indicate. Blog home:Http://blog.csdn.net/chszsI. Overview of the SMACK LibrarySmack is an open-source, easy-to-use Xmpp/jabber client library that is developed in the Java language and developed by Jive Software.The advantage of smack is that programming is
Linux XMPP server Tigase (Spark client test)
Tigase is an XMPP server developed based on Java. Similar to Openfire, Tigase can be used to build an Instant Messaging (IM) platform.
1. Preparation
Before installing Tigase, you must first prepare the Java Environment and Database (MySQL is used in this article ).
Tigase download: https://projects.tigase.org/projects
/tigase.sh Stop Etc/tigase.conf5. Test Tigase server with SparkAfter the server starts successfully, use XMPP client Spark to test the tigase server.Open Spark, register a new user, the server is the host name or IP address of the Tigase server, and the--virt-hosts configuration item in Etc/init.properties is consistent.Once the creation is successful, you can log in directly.Open another spark, create anot
I. Purpose and Effect:Using the XMPP framework to build a client with Xcode, to register to the server to add user passwords, as well as login, offline statusThe main structure of the project: New Singleview project, with xib drag and drop two input boxes and two buttons,and associate in Viewcontroller, establish Regisgtviewcontroller and select Xib, use Xib AssociationThe final effect can be viewed in the
XMPP is the official name of the jabber protocol. Its core protocol is a specification for sending XML via socket and other media. Very simple and easy to implement.
First, establish a network connection through socket
Then the client sends an XML start tag such as
Then the server returns a tag such as
Then, it indicates that the two sides can begin to interwork the XML stream.
Disconnection does not s
Recently in the collation of some of this information, less gossip, let me go straight to the theme:
A. OpenFire configuration installation based on XMPP implementation
1, download the latest OpenFire installation files
Official Download site:
Http://www.igniterealtime.org/downloads/index.jsp#openfire
Download Address:
Exe:
Http://www.igniterealtime.org/downloads/download-landing.jsp?file=openfire/openfire_3_7_1.exe
Zip:
Http://www.igniterealtime.org
First we make an iOS client program ourselvesLet's look at what we've done.First download the Xmppframework frameworkClick Zip to downloadNext, create a new project with XcodeDrag the following files into the new projectJoin the frameworkHere we are all set up, run for a try, see if there is a mistakeIf there is no mistake, our xmppframework will join in the success.We set up our pages such as:Our KKViewController.h.Kkviewcontroller.mThe code here bel
This record I use XMPP implementation of the upload avatar process, found that XMPP really very powerful many features have been implemented. We just have to call it straight. Here's the code.Introduction Header File This header file needs to be imported by itself or the method under Xmppvcardtemp cannot be called. #import "XMPPvCardTemp.h"Declaring related objectsDeclaration Upload avatar related objects @
Last year's 3q war made us feel the power of oligarchy. After that, we were ready to develop our own im tool.
Otherwise, it is still subject to people, but it is estimated that no one will use the IM tool because of customer stickiness.
However, we can at least develop the open protocol, so we found the XMPP protocol and prepared to develop the open im tool on this protocol.
So with this initial version of the
Recently, I have been sorting out some materials in this area, so I 'd like to go straight to the topic without having to talk about it :)
I. XMPP-based openfire configuration and installation
1. download the latest openfire Installation File
Official download site:
Http://www.igniterealtime.org/downloads/index.jsp#openfire
:
EXE:
Http://www.igniterealtime.org/downloads/download-landing.jsp? File = openfire/openfire_3_7_1.exe
ZIP:
Http://www.ignitere
settings, support settings message notification reminders (sound vibration, etc.), support chat logs and message list empty;8, exit the popup when exiting the prompt box;There is a picture for proof:Here to explain, the personality signature is also the mood, after setting up, look at the next database, suspected and not saved to the database, so only you will be online to display the signature you have set, once the offline, your signature disappears. About the avatar display,
XMPP Client library Smack development of 4.0.6 version fiveChszs, reprint need to indicate. Blog home:Http://blog.csdn.net/chszsIv. using Chat message communicationSending and receiving messages back and forth is the core function of instant Messaging. Although a single message is sent and received in the form of a packet, it is usually treated as a message string for chatting, using the Org.jivesoftware.sm
Add friends to the XMPP iOS client (3)Here we record the process of adding friends. Although there are examples on the Internet, they are not very comprehensive, and one of them is not given.
Initialize the XMPPRoster class. I have been searching for the initialization settings of this class for a long time. Not much. Paste the code below.
Initialize the XMPPRoster object Declaration
@ Interface XMPPModel
Before I write the client has implemented the login, below I want to use Adium to login to implement the friend's add, and their own written account on the client to chat. The first time you log in Adium the following configurationAfter saving, you will find that your account is still not able to log in, this is mainly to configure the server's IP and the name of your virtual serverSelect Preferences to go
default admin account and customize it, you need to do the following(1) in the terminal, login to the specific database (OpenFire)Mysql-u root-p OpenFireThen enter the root password of the database(2) Delete the admin account in the table "Ofuser"Delete from Ofuser where username= ' admin ';(3) Create a custom administrator (user name: Xiaodao, Password: 123)INSERT into Ofuser (username, Plainpassword, Encryptedpassword, name, email, creationdate, modificationdate) VALUES (' Xia Odao ', ' 123 '
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.