xmpp

Integrating Jabber/XMPP with other systems (authentication, password sharing)

ⅰ亾dé卋堺 提交于 2019-12-23 21:37:15
问题 Is it possible to instruct the jabber/xmpp server to delegate authentication to another module? We are building an internal application using XMPP and it would be fantastic if we could let users keep their standard username/password that they use in our web-apps. The web-apps are currently hashing passwords, and so the passwords in the DB are not stored in plain-text form. It would have been easy to share passwords across systems if this were not the case, but then, of course, storing plain

Referring a currently open XMPP connection from another python script present inside a django server

◇◆丶佛笑我妖孽 提交于 2019-12-23 18:22:04
问题 My application server's requirements are as follows: Receive sensor data from mobile phones (using HTTP) Process them (python libraries) Send notification to the mobile devices (rendered as notifications on Android devices) Implementation Setup: In order to do the above, my server has three modules: Django app module : Provides an HTTP interface to the inference library to cater to the HTTP requests sent by the Android devices to the server. Python Inference Library : Processes the sensor

smack for android fails when using proguard

≯℡__Kan透↙ 提交于 2019-12-23 16:54:55
问题 I am using the smack library (4.1.2) in my Android app to connect to an XMPP server. It runs perfectly well when the code is NOT minified (ie with proguard). But in release mode, with proguard enabled, the app crashes as soon as it connects to the server. I am trying to keep all relevant smack classes unminified as suggested here: What are the recommended ProGuard rules for Smack 4.1? -keep class org.jivesoftware.smack.** { *; } -keep class org.jivesoftware.smackx.** { *; } But for me this

using XMPP or WebSocket, why there is a server needed in real-time communication between users?

倾然丶 夕夏残阳落幕 提交于 2019-12-23 12:53:46
问题 At the bottom, it's all about socket communications. If there is some way to get the ip of the both users, why can't the connection be directly setup between the users instead of having to go thru a server in the middle? 回答1: My 2 cents: No one out there forces us to have a server based real-time communication model. Infact XMPP have an extension called "Serverless Messaging" which defines how to communicate over local or wide-area networks using the principles of zero-configuration

Google Talk XMPP - What is X-GOOGLE-TOKEN?

落花浮王杯 提交于 2019-12-23 12:23:13
问题 I'm trying to authenticate to Google Talk. The X-OAUTH2 mechanism, which uses OAuth2 tokens, is well documented. But what is X-GOOGLE-TOKEN and where is it documented? 回答1: Ah, found it. It's the deprecated ClientLogin API: Important: ClientLogin has been officially deprecated as of April 20, 2012. It will continue to work as per our deprecation policy, but we encourage you to migrate to OAuth 2.0 as soon as possible. 来源: https://stackoverflow.com/questions/12358429/google-talk-xmpp-what-is-x

Ubuntu12.04(64bit)上部署编译运行Openfire+Spark环境

爱⌒轻易说出口 提交于 2019-12-23 11:06:40
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 一、环境 一、下载 Openfire 源码 htp://www.igniterealtime.org/downloads/source.jsp openfire_src_3_9_1.zip 点击下载 下载完毕后解压资源到某个路径下 relsese版本下载连接: http://www.igniterealtime.org/downloads/index.jsp 二、编译源码 打开 Eclipse ,新建工程, use default location 选择 openfire 解压路径 新建编译项 Window->Show view->Ant 在 ant 窗口中点击 Add buildfiles ,在 buildfile selection 窗口中选择 openfile 工程中的 build.xml, 点击 OK 展开 Openfire XMPP Server 项,在众多项中选择 openfire[default] ,右键 Run as->Ant Build 进行编译。 编译通过后提示 BUILD SUCCESSFUL 编译成功后,工程目录结构下多出两个目录 target 和 work 三、添加 lib 库 将刚才生成的目录 target/openfire/lib 下所有 jar 包添加到工程中 四、配置 run

Why does sending an email need multiple mail server hops?

北城以北 提交于 2019-12-23 10:09:49
问题 When I send an email to somebody, (I think) my email is sent to my home server, then the email is sent to target server, then it is finally sent to the people I want to send to. Sometimes, this needs multiple hops, which is the point that confuses me. Why does this need multiple hops? Why can't the email be sent to the target server directly? XMPP doesn't need multiple hops, for example. 回答1: Fundamentally that has to do with the original purpose of the Internet, or rather it's predecessor

Which one should I choose AMQP or XMPP for real-time browser-based game?

自作多情 提交于 2019-12-23 09:27:12
问题 I'm choosing between AMQP (RabbitMQ) vs XMPP (eJabberd) for my browser-based flash-free javascript powered real-time turn-based game. I don't know much about AMQP and XMPP protocol. I would like to use PHP for user-authorization and some data store-retrieve with MySQL. As far as I found out, RabbitMQ has PHP clients but eJabberd not. What I understood is javascript client calls PHP script and manipulate necessary processing and then pass to AMQP or XMPP server to pass the data to opponent

Smack 4.1 No Response within reply timeout

梦想与她 提交于 2019-12-23 07:47:34
问题 I am using the following code in my android app: Thread d = new Thread(new Runnable() { @Override public void run() { SmackConfiguration.setDefaultPacketReplyTimeout(10000); XMPPTCPConnectionConfiguration config = XMPPTCPConnectionConfiguration.builder() .setUsernameAndPassword("admin", "password") .setServiceName("192.168.0.200") .setHost("192.168.0.200") .setPort(5223).setSecurityMode(SecurityMode.ifpossible) .build(); AbstractXMPPConnection conn2 = new XMPPTCPConnection(config); try {

Get Friends list from openfire Server

送分小仙女□ 提交于 2019-12-23 06:39:07
问题 How to get all friends programmatically from openfire server in objective C, I am using XMPP Framework for chat Functionality. 回答1: Here is a function to fetch friends. Add your host name in below function. func getList() { let query = try! XMLElement(xmlString: "<query xmlns='http://jabber.org/protocol/disco#items' node='all users'/>") let iq = XMPPIQ(type: "get", to: XMPPJID(string: "Your Host Name"), elementID: xmppStream.generateUUID(), child: query) iq?.addAttribute(withName: "id",