agsXMPP

XMPP Libraries for Metro Apps in WinRT [closed]

烂漫一生 提交于 2020-01-03 13:36:53
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Could you please list down some XMPP Libraries which supports for Metro Apps in WinRT? Thanks! 回答1: MatriX is available for WinRT

GCM CCS Receive delivery receipt

狂风中的少年 提交于 2019-12-23 02:26:32
问题 I'm trying to write a 3rd party server .NET application for sending notifications to Android devices using GCM's CCS as outlined here. And I want to use Receive delivery receipts feature. I created a simple console app using agsXMPP library. My application sends message to GCM with the flag "delivery_receipt_requested": true and receives ACK message from the GCM server, and I see this message is delivered to the target device, but delivery receipt message doesn't come. Update: I can receive

XMPP chat sent/received message synchronization

丶灬走出姿态 提交于 2019-12-13 21:23:29
问题 Scenario : I am trying to develop a web site which features a chat widget. I am using ASP.NET, C#, agsXMPP library as my tools in achieving this purpose. I use Openfire jabber server for XMPP server. Problem : When I access the widget on the website and start chatting, I send a message with message type "chat" and thread set. I receive this message on the client in this case Spark. When I reply to this message, I see that the thread value is not the same as the one I sent? According to RFC

How to retrieve Someone's Avatar/Photo with agsXmpp

拟墨画扇 提交于 2019-12-11 06:12:25
问题 this is what I have so far: void xmppConnection_OnReadXml(object sender, string xml) { if (xml.Contains(XmlTags.PhotoOpen)) { int startIndex = xml.IndexOf(XmlTags.PhotoOpen) + XmlTags.PhotoOpen.Length; int length = xml.IndexOf(XmlTags.PhotoClose) - startIndex; string photoHash = xml.Substring(startIndex, length); } } I guess I can't undo the hash, but I want to the get a person's avatar/photo. How do I achieve this? 回答1: You need to handle the VCard events and responses from XMPP connection:

agsXMPP + Openfire 即时通讯开发(二) 【文件传输】

↘锁芯ラ 提交于 2019-12-03 01:37:32
上篇bolg( agsXMPP + Openfire 即时通讯开发(一) 【agsXMPP 连接 Openfire】 )中agsXMPP的MiniClient已经可以相互之间进行通讯了,本篇介绍如何进行文件传输。 首先我们需要了解XMPP文件传输的整个对话过程: 这篇文章 写的比较详细 或者你可以查看XMPP源文档 XEP-0052 (PDF) 通过阅读以上文档我们已经了解XMPP传输文件前的对话过程,接下来按照上面的步骤完成消息对话。 当然前提是需要你看懂MiniClient的XML收发代码,其实在文件传输过程中,70%的时间我都花费在阅读agsXMPP 的代码上了,20%调试,10%才是我对代码的改动。 注意: 1、获取代理服务器后,与代理服务器通信的Jid需要这样获得 Jid jid = new Jid("proxy.127.0.0.1") 当你获取代理服务器资源和激活数据流的过程中需要用这个jid。 2、在同一次文件传输过程中xml消息的SID,都应该保持一致,同时Socket5连接的SID也应该为同一个SID。 3、无论文件接收端链接代理还是文件发送端链接代理,Socket5链接的Initiator属性设置为文件发送端的Jid,Target属性设置为文件接收端的Jid。 来源: oschina 链接: https://my.oschina.net/u/270180

使用agsXMPP查询聊天室内联系人

丶灬走出姿态 提交于 2019-12-03 01:37:20
项目中有这么一个需求: 1. 间隔一分钟,查询XMPP服务器,获取在某个聊天室中的成员信息 2. 获取查询结果,做相应处理 查询XMPP协议,发现XEP-0045文档有做相关的协议说明: http://xmpp.org/extensions/xep-0045.html#disco-roomitems ,用到的是多用户聊天室(MUC)的discovery操作,对应的Namespace Uri为: http://jabber.org/protocol/disco#items 查询消息定义: <iq from='you jid' id='message id' to='roomJid' type='get'> <query xmlns='http://jabber.org/protocol/disco#items'/> </iq> 正常的查询结果消息格式定义: <iq from='roomJid' id='message id' to='you jid' type='result'> <query xmlns='http://jabber.org/protocol/disco#items'> <item jid='roomJid/member1NickName'/> <item jid='roomJid/member2NickName'/> </query> </iq>