xmpp

Create message while sending Image through Asmack

空扰寡人 提交于 2019-12-20 04:23:07
问题 There is an issue that I am facing while sending Images through XMPP.Below is the code snippet that i have done. I don't know what is wrong with the code . Message msg = new Message(emailId, Message.Type.chat); ImageTransferExtension transfer = new ImageTransferExtension(); transfer.setImageName(mImageUri.getEncodedPath()); transfer.setUserRecipient(emailId); msg.addExtension(transfer); And here is the ImagesTransferExtension code snippet EDIT : public class ImageTransferExtension implements

get delivery status of recent messages in smack

十年热恋 提交于 2019-12-20 03:02:35
问题 I'm newby in smack 4.2.4 and xmpp. I've sent bunch of messages but the recipent is not available to get them,I've close the application and next time when I'll open the application want to check the status of messages, which is delivered or not. 回答1: You can use XEP-0184: Message Delivery Receipts for check delivery of messages to destination. First you must add the gradle dependency of smack-extensions: implementation 'org.igniterealtime.smack:smack-extensions:4.2.2; Then use this code, when

Save received files from xmpp Strophe si-filetransfer

倾然丶 夕夏残阳落幕 提交于 2019-12-20 02:32:50
问题 I am implementing file transfer in my web application using strophe.si-filetransfer.js plugin. I am able to receive file details within an iq stanza. My question is, How can I extract file data from an iq stanza and download it? The link I referred to work around: https://github.com/strophe/strophejs-plugins/tree/master/ibb Thanks 回答1: On the receiver side, you need to collect file info on fileHandler function, then grab all data chuncks on ibbHandler (e.g. using an array) and finally you

XMPP file transfer using Strophe library

喜夏-厌秋 提交于 2019-12-19 23:25:23
问题 Can anyone let me know the implementation of file transfer in XMPP using strophe library 回答1: I would recommand to use the XEP-0065: SOCKS5 Bytestreams that you will need to code by yourself, I'm afraid... 回答2: theres a strophe si-filetransfer plugin available. You will have to study the code and add the handler along the lines of: connection.si_filetransfer.(addhandler); Then use it with : connection.si_filetransfer.send(to, sid, filename, size, mime, cb); I tried it out earlier, but was

xmpp协议分析

蹲街弑〆低调 提交于 2019-12-19 21:13:27
连接服务器: SENT: <stream:stream to="jabber.cn" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" version="1.0" > RECV: <?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' id='43FEAEE5' xmlns='jabber:client' from='jabber.cn' version='1.0'> RECV: <stream:features><register xmlns='http://jabber.org/features/iq-register'/><auth xmlns='http://jabber.org/features/iq-auth'/></stream:features> 登录(身份验证): SENT: <iq id="jcl_103" type="get"><query xmlns="jabber:iq:auth"><username>renziyi</username></query></iq> RECV: <iq id='jcl_103' type='result'><query

ejabberd how to compile new module

谁说胖子不能爱 提交于 2019-12-19 12:22:21
问题 Here I found the code: erlc -I ~/ejabberd-2.1.13/lib/ejabberd-2.1.13/include -pa ~/ejabberd-2.1.13/lib/ejabberd-2.1.13/ebin mod_my.erl But it did not work? 回答1: Here are steps to add your custom module into ejabberd put your module into ejabberd/src folder. come to ejabberd directory in terminal and run command $ sudo make it will show you that your module is compiled. Now run $ sudo make install Add your module into config file at /etc/ejabberd/ejabberd.yml restart your ejabberd and your

Android XMPP connection is not persistant - asmack library even running in a separate thread

…衆ロ難τιáo~ 提交于 2019-12-19 11:52:15
问题 I am developing an Android chat app which uses asmack library. What I observe is that the XMPP connection beocmes disconnected after a particular interval of time. ( This also varies from device to device ) I am runnning the connection code in a separate thread as instructed in the below link Can't establish a new connection with aSmack 4.0.2 But I get the following exception D/Reconnection Manager(23105): scheduleReconnect: calling tryToConnect I/System.out(23105): default ping interval is

Python Jabber/XMPP client library for Twisted [closed]

孤者浪人 提交于 2019-12-19 06:56:47
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I am looking for a Python library for writing Jabber/XMPP clients using the Twisted framework. 回答1: Wokkel is your best bet. It's an enhancement on the core Twisted Words functionality built into Twisted. It has several major users, include the guys behind Stanziq/Strophe. 回答2: Twisted Words 来源: https:/

Python XMPP server library

杀马特。学长 韩版系。学妹 提交于 2019-12-19 04:21:45
问题 I know there are several libraries to connect to XMPP servers, but is there an XMPP server library somewhere written in Python? 回答1: A quick google search reveals: http://code.google.com/p/pretzel/ An XMPP server written on the Twisted Python framework http://code.google.com/p/pjabberd/ Jabber/XMPP Server in Python Both seem a bit unmaintained, but you might be able to get them up and running. 回答2: It seems like that there is a new project on github: python-xmpp-server An XMPP Server written

Android GCM : understanding XMPP

青春壹個敷衍的年華 提交于 2019-12-19 04:15:31
问题 I'm trying to implement a XMPP protocol in my GCM using app, but even after searching extensively, I don't understand the concepts behind it. Also, maybe I don't really need XMPP for what I want to do with my app, but I like to learn things. Let's take this example of what I could do with HTTP : my app send "hello word" and the regId to my little personnal server : url.openConnection("") , then OutputStream for sending POST data and InputStream for getting the response the server, at this url