openfire

Trying to reach my openfire server through my android client

旧巷老猫 提交于 2019-12-23 03:12:12
问题 I want to create my own XMPP android client . So I begane with the samsung tutorial which interface itself with gmail and that you can find here : http://developer.samsung.com/android/technical-docs/Building-a-Chat-Application It worked like a charm. Now I tryed to setup this client for working with my openfire server. For this I converted the folowing lines: public static final String HOST = "My public ip(82.65....)"; public static final int PORT = 5222; public static final String SERVICE =

Deny messages from non-roster users in Openfire

前提是你 提交于 2019-12-23 02:40:47
问题 How do I only allow contacts who are on my roster list to send me messages? Is there any XEP responsible to do that? Or will I need to do this client-side? 回答1: Yes, OpenFire supports XEP-0016: Privacy Lists (see this question), which can be used to block stanzas according to various criteria. You can't explicitly block stanzas for contacts not in your roster, but you can block by subscription status none , which can more or less accomplish the same goal. You could send something like this:

XMPP Openfire Messages inserting late in database

▼魔方 西西 提交于 2019-12-23 01:52:37
问题 Goal:- Inserting messages in faster way to database. I have integrated xmpp openfire one-to-one chat over my website. I am using Monitoring Service plugin for storing messages into the database. What i am facing is when user send a message from one user to another user at that time messages are stored in the database. Now messages are stored, but i am facing issue of inserting messages late into the database. I am loading messages via ajax call when user clicks on another user message thread

file transfer in multi user chat to muliple users

妖精的绣舞 提交于 2019-12-22 19:13:09
问题 i want to send files to multiple users in a one chat room so that i will be broadcasted to everyone. so far i havent found anything or any help on internet which resolve this issue. currently what i tried is to send a single file to each users one by one but i think that is not an efficient way so if someone has another approach then please do let know. i have tried sending file using si-filetransfer and bystream also. socks5 bytestream is not possible in javascript i guess so i havent tried

Send XMPP (Smack) Message

梦想的初衷 提交于 2019-12-22 09:59:51
问题 Ok, the problem should be trivial but I can't get to the bottom of it. I have two users A & B Their JID's for this example will be A@123 and B@123 where 123 is the IP of the server. I'm sending a message from A->B using the following code: chat = chatmanager.createChat(username, new MessageListener() { public void processMessage(Chat chat, Message message) {}}); String sendUsername = username + "@123"; Message msgObj = new Message(sendUsername, Message.Type.chat); msgObj.setBody(message);

What should be the JID for a user in OpenFire Server?

*爱你&永不变心* 提交于 2019-12-22 04:07:19
问题 Hi I am new to this: I have set up an Openfire Server and using Spark IM to test it. But for Android application code what should be the JID for the user in session: I have tried username@ip_address , username@ip_address/Smack , username@ip_address/Spark. Please see the image below and help: What would be the solution for this .please help. 回答1: JID is: username@xmpp-domain/Resource. The IP address of your Openfire host can be different to the XMPP Domain. You can see you XMPP Domain if you

Delete a Friend from Roster in Xmpp/Openfire

不打扰是莪最后的温柔 提交于 2019-12-22 01:07:43
问题 In my chat application. I am using smack library , with the help of Subscription Management I have done the part of adding a friend to the Roster of a particular person. Now I want that when some person denies the friend request, I send a UNSUBSCRIBE PACKET to the other user for the same, the friend is not deleted from the roster of the other user. It simply shows NONE subscription. CODE: Presence unsubscribe = new Presence(Presence.Type.unsubscribe); unsubscribe.setTo(ABC@ABC.COM);

Centos7 安装 openfire

允我心安 提交于 2019-12-21 23:27:38
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> Centos7 安装 openfire 一、检查机器上是否安装了java 命令:java -version linux[@linux](https://my.oschina.net/tjxlinux):~$ java -version java version "1.8.0_65" Java(TM) SE Runtime Environment (build 1.8.0_65-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode) 二、下载openfire 下载地址: http://www.igniterealtime.org/downloads/index.jsp 如果安装了java,就下载 RPM (64bit JRE bundled) for Red Hat Linux and variants 或者 RPM (32bit JRE bundled) for Red Hat Linux and variants 如果服务器上没有安装java,就下载 RPM (no JRE bundled) for Red Hat Linux and variants 三、安装 rpm -ivh openfire-4.2.3-1.noarch

item-not-found(404) when trying to get a node using Smackx pubsub

北战南征 提交于 2019-12-21 05:39:18
问题 I'm trying to use the latest Smackx trunk to get and then subscribe to a pubsub node. However, openfire just sends me a back an error: item not found (404). I am instantiating the java objects from ColdFusion, so my code snippets might look funny but maybe someone will be able to tell me what I've forgotten. Here's how I create the node: ftype = createObject("java", "org.jivesoftware.smackx.pubsub.FormType"); cform = createObject("java", "org.jivesoftware.smackx.pubsub.ConfigureForm").init

How to create/ update/ retrieve user vCard using XMPPFramework and OpeFire on iOS

柔情痞子 提交于 2019-12-21 05:36:15
问题 As the title suggests,I am trying to create a vcard for my user and send it to the server, but it seems that it doesn't work, any ideas? i will much appreciate any help Here is my code together with the stream connect and authentication, I included thses part bacause there may also be something wrong with them, as I am a noob in working with xmpp framework, the iOS client thaI use is: https://github.com/robbiehanson/XMPPFramework the .h class code is: #import <UIKit/UIKit.h> #import