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
1. Build server-Installation sequence-(Mysql->openfire->spark)Database: MySQLServer Management tools: OpenFireTest tool: SparkMySQL installation http://www.cnblogs.com/xiaodao/archive/2013/04/04/2999426.htmlNote: At the end of the terminal to execute the MySQL command, the last to be sealed number (;)OpenFire installation http://www.cnblogs.com/xiaodao/archive/2013/04/05/3000554.htmlBackground Management interface: http://localhost:9090/index.jspLogin name and password default is Admin adminServ
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
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
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.smack.Chat class.1. Chat classOne chat chat cre
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=?
Installation in Windows
1. First download the latest installation package at http://www.igniterealtime.org/projects/openfire/index.jsp* Note that the JRE version and the JRE version are not included, and the JRE version must be supported by JRE 1.5.0 or later.
2.install or decompress openfire.exe* To add openfirep to a service, run the following command:Openfire-service/install -- install the serviceO
, we can see: 1. The port number of the service socket we defined is 12345. 2. The Communication contract format we define is separated by a "colon". "Iam:xxx" means the landing contract, "msg:xxx" means the chat contract. And then we can start this service:
After processing the service side, we started to start the client code:
VIEWCONTROLLER.M//a01_ chat room//
Openfire server configuration. Skip the introduction first.
Article When used in.
Openfire Extension Test integration with existing system users
If I want to use the user/group (department) of an existing system instead of using openfire to manage a set of users/groups, it is very convenient to use openfire to integrate existing system users.
Go to the openfire console-server-Service Manager-System PropertiesYou can find the following configu
The Android system also provides a component called a "Service" that typically runs in the background. Activity can be used to start a service,service that can remain in the background after startup, even if the activity that initiates it exits or switches to another app service to remain operational.A
To do the project needs to operate the Windows service, from the Internet to find some information, summed up as follows:
(The following program tests through the program)
Using System; Using System.Collections.Generic; Using System.ComponentModel; Using System.Data; Using System.Drawing; Using System.Text; Using System.Windows.Forms; Using System.Collections; Using System.Configuration.Install; Using System.Collections.Specialized; Using System.Servi
Xinetd service
Tftp service
Tftp-0.49-2.i386.rpm Client
Tftp-server-0.49-2.i386.rpm Server
Configuration file directory/etc/xinetd. d/tftp
Service tftp
{
Socket_type = dgram ----------------------- socket type (udp) stream (tcp)
Protocol = udp
Wait = no
User = root
Server =/usr/sbin/in. tftpd ------------- start the program
Server_args =-s-c/tftpboot -----------
I. C # Use processstartinfo to install the service, uninstall the service, enable the Service, and disable the service!
C # Use processstartinfo to install the service, uninstall the service, enable the
1. [[email protected] ~] # Cp/user/local/apache2/bin/apachectl/Etc/init. d/httpd
2. [[email protected] ~] # Vim/etc/init. d/httpd
Add the following configurations to the beginning of the line:
#! /Bin/sh
# Chkconfig: 2345 85 15
2345 indicates that the service is loaded in the four startup levels of 2345, 85 indicates the sequence number at startup (at startup), and 15 indicates the sequence number at Shutdown (at shutdown ).
# Description: httpd i
Alliance, aiming to build a mobile app business Internet ecosystem for Xiaomi.We contacted Wang Xuan, on the structure, characteristics, performance and other issues of the Xiaomi push service, he was interviewed, the following content according to this interview organized.Basic Technology Architecture protocol is at the heart of the push service. The protocol used by Xiaomi's push
Android notes. Getting started with Service components (1). What is Service ?, Android. serviceReprinted please indicate Source: http://blog.csdn.net/u012637501 (embedded _ small J of the sky)I. Service1. Service IntroductionThe Service is one of the four Android components. Similar to the Activity component, the
Android study note 24. Service entry (2) bind and communicate with the local Service, android. serviceBind and communicate with the local ServiceThrough the first three steps in the previous blog, we have completed a Service and the application that uses the Service (the Service
implemented in Java. It is based on the openfire open source project. However, its Web part adopts the Spring framework, which is different from openfire. The androidpn server consists of two parts. One is the XMPP service listening on port 5222, which is responsible for communicating with the xmppconnection class of the client. It serves as a user registration and identity authentication, and sends push n
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.