openfire

How to know Typing Status in XMPP openfire using Smack

☆樱花仙子☆ 提交于 2019-11-27 03:26:15
I am developing chat application by using Openfire XMPP server. I can text chat between two user. But i want to know Typing status when some one is typing message. So i created a class :- public class typingStatus implements ChatStateListener { @Override public void processMessage(Chat arg0, Message arg1) { // TODO Auto-generated method stub } @Override public void stateChanged(Chat arg0, ChatState arg1) { // TODO Auto-generated method stub System.out.println(arg0.getParticipant() + " is " + arg1.name()); } } But i am confuse so that How will it work? I know that i need a packet where i can it

ubuntu openfire Server install

一曲冷凌霜 提交于 2019-11-26 20:28:42
1.首先登录到ubuntu server。在安装openfire 服务器之前,先确保你的系统已经更新到最新。然后输入下面的命令,一行一行执行,最后安装可用的更新 sudo apt-get update sudo apt-get upgrade 2.安装最新版本的Oracle JRE/JDK,使用PPA(personal package archieve)WEBUPD8的方式安装。 sudo apt-get install python-software-properties sudo add-apt-repository ppa:webupd8team/java sudo apt-get update 如果你正在使用OPenJDK,那么先将它移除以免产生任何的冲突 sudo apt-get remove --purge openjdk* 然后使用下面的命令安装Oracle Java 7 sudo apt-get install oracle-java7-installer 3.安装mysql数据库。使用apt-get命令安装最新版的mysql 服务器。 sudo apt-get install mysql-server 4.在MySQL中为openfire创建一个数据库。     先用root权限登录到mySQL服务器 sudo mysql -u root p 创建的数据库名称叫做

XMPP Sending/Receving file in iphone sdk …?

无人久伴 提交于 2019-11-26 20:22:33
问题 How to send/receive file in iphone sdk using xmpp framework ? Currently i am using XEP-0065 classes, and use the following code: ObjTURNSocket = [[TURNSocket alloc] initWithStream:((TestAppDelegate*)[[UIApplication sharedApplication] delegate]).xmppStream toJID:chatuser.jid]; [ObjTURNSocket start:self]; And I am getting following response from the server: <iq type="error" id="AB2ED567-B97F-4DFE-B789-7731A617C239" to="kapil@testweb/6df6dc96" from="jabber.org"> <query xmlns="http://jabber.org

Mapping Openfire Custom plugin with aSmack Client

人盡茶涼 提交于 2019-11-26 18:39:33
问题 I'm a newbie to XMPP so forgive me if this question sounds silly. I want to create a custom plugin and map it with my aSmack client on Android. I'm trying to apply my knowledge of Web Services but I'm not winning. So please guide my thinking toward the best approach, an example will be really helpful. Thanx in advance. 回答1: There are many types of plugins, let's talk in general pourpose. Igniterealtime Plugin guide You want to define a brand new IQ Stanza to manage an UserCustomParam. Let's

Retrieve history chat Openfire XMPP framework

[亡魂溺海] 提交于 2019-11-26 17:25:17
问题 I've developed a chat app using XMPPframwork of Robbie Hanson and Openfire server. I can chat one to one and chat group successfully. But when I get history of chat, I can't get whole history. I use XEP-0136 to archieve history: Send IQ: <iq type="get" id="hichic@macintosh"> <retrieve xmlns="urn:xmpp:archive" with="group12@conference.macintosh"> <set xmlns="http://jabber.org/protocol/rsm"> <max>100</max> </set> </retrieve> </iq> Receive: <iq type="result" id="hichic@macintosh" to="admin

How to know Typing Status in XMPP openfire using Smack

半腔热情 提交于 2019-11-26 10:32:17
问题 I am developing chat application by using Openfire XMPP server. I can text chat between two user. But i want to know Typing status when some one is typing message. So i created a class :- public class typingStatus implements ChatStateListener { @Override public void processMessage(Chat arg0, Message arg1) { // TODO Auto-generated method stub } @Override public void stateChanged(Chat arg0, ChatState arg1) { // TODO Auto-generated method stub System.out.println(arg0.getParticipant() + \" is \"