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 believe that you have learned uitableview words
Registration is simple:
Define a method in appdelegate as follows:
-(Bool) registeritalk :( nsstring *) un pwd :( nsstring *) pwd
{
Isloginoperation = no;
Self. Username = UN;
Self. Password = PWD;
Return [self connect];
}
Isloginoperation determines whether to log on or register. Before registering, you must call [self connect];
Call the registration method provided by XMPP in this proxy method
-(Void) xmppstreamdidconnect :( xmppstream *) sender
{
In the previous article, we talked about how to enter this chat room. This time, we will talk about the features in the chat room, chat information, and member changes. Or less nonsense. Theme:
1. chatting is simply a text message. Of course, we cannot get information from the server from time to time. Make full use of real-time push.
(1) first, add a listener, MUC. addmessagelistener (chatlistener). If muc does not know what it is, read the previous article. Chatlistener is our listener. Looki
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
XMPP-use CoreLocation to obtain the geographical location and why does CLLocationManager not call the proxy? cllocationmanager
XMPP-Based Instant Messaging was recently launched. Let's summarize the relevant content and take a look!
1. Use CoreLocation to obtain the geographical location
To use CoreLocation, you must add "CoreLocation. framework" to frameworks and import
1. Define member variables
#import
Basic semantics9.2.1 Message semanticsThe 9.2.2 presence Semantics The information of the entity that has subscribed (in this case, the network can take advantage of information). In general, the publishing entity should send a presence section without the ' to ' attribute, in which case the server connected to the entity should broadcast or reuse the section to all subscribing entities. However, a publishing entity may also send a presence section with a ' to ' attribute, in which case the serv
the user name, you must restart the OpenFire server8. Background Control InterfaceThird, uninstall OpenFire1. Stop the ServiceIn other settings in System Preferences, open OpenFire preferencesClick the Stop OpenFire button to stop the service2. deleting filesOpen Terminal, enter the following commandsudo rm-rf/library/preferencepanes/openfire.prefpanesudo rm-rf/usr/local/openfiresudo rm-rf/library/launchdaemons/org.jivesoftware.openfire.plistAfter the first command, you need to enter the native
Implement notification packets based on smack. Smack class has a org.jivesoftware.smack.packet.IQ just rewrite to him can, in fact, when doing a simple, if you use the Tinder.jar package, its IQ Org.xmpp.packet.IQ has a The Setchildelement method corresponds to the getchildelement, but smack does not!Used primarily for push communication with Android client. Define a set of your own packet formats:1 IQID= "11111" to= "[email protected]"type= "Get">2 Notificationxmlns= "Androidpn:iq:notificat
Release date:Updated on:
Affected Systems:Pidgin Unaffected system:Pidgin 2.10.4Description:--------------------------------------------------------------------------------Bugtraq id: 53706Cve id: CVE-2012-2214
Pidgin is a multi-in-One world mainstream instant messaging software integration tool.
In versions earlier than Pidgin 2.10.4, when processing a series of specially crafted file transfer requests, the client references invalid memory. After receiving one of the file transfer requests,
Here is a record of the process of building ejabberd-14.12.First Download: Http://pan.baidu.com/s/1hqzjezq Here, I'm uploading to my online plate,You can also download the http://xmpp.org/xmpp-software/servers/website1, set the domain name, here to pay attention to the domain name to remember, after landing to use.2, set the administrator name here I set the name of the admin login after the name is [email protected] admin @ domain name such structure
Today to get this OpenFire server configuration directly suffering a force, but fortunately finally configured. First of all, thank you at the end of the Moonlight blog has given me a great help. Cut to the chase, first say the iOS XMPP protocol to implement the chat OpenFire server configuration required:1.openfire software, I'm using openfire 3.9.3,:http://www.igniterealtime.org/downloads/index.jsp .2.MYSQL database, I'm using mysql-5.1.63,:http://d
submitform. setanswer ("MUC # roomconfig_allowinvites", true); // roles that occupy the real jid of the worker can be found. // submitform. setanswer ("MUC # roomconfig_whois", "anyone"); // log on to the room and submitform. setanswer ("MUC # roomconfig_enablelogging", true); // only registered nicknames are allowed to log on to submitform. setanswer ("X-muc # roomconfig_reservednick", true); // you can modify the nickname submitform. setanswer ("X-muc # roomconfig_canchangenick", false); // a
Build iOS XMPP Development Environment
1 first download the xmppframework frameworkHttps://github.com/robbiehanson/XMPPFramework2 Environment configuration reference: https://github.com/robbiehanson/XMPPFramework/wiki/GettingStarted_iOS 1 add xmppframework framework to project
Drag the following files into the project
You can choose to add modules in Extension (only the modules required by the current project are added)The xmppframework design
you have MySQL or Oracle installed, you can select a standard database connection. If nothing like me is installed and you are too lazy to install it, you can only select an embedded database. 6. Set features and select the default one. 7. Set the administrator account. Do not talk about it here ~ 8. After the openfire configuration is complete, you will be prompted to log on to the console. When you log on, enter the seven-step Administrator name and password. 9. After logging on, y
During XMPP communication, a javax.net. SSL. sslexception: specified ed fatal alert: internal_error Error error occurs when you log on to a non-local openfire server using the smack framework. The reason is that there is a logon delay (when the connection fails to be successfully linked to the openfire server) When you log on to the openfire server, this exception occurs.
Solution
1. After connecting to the openfire server, the thread sleep for
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.