zoukankan
html css js c++ java
agsxmpp与Openfire联通
agsxmpp是一套用C#实现的开源XMPP协议库,Openfire是用c实现的xmpp服务器程序,两者互通存在一些问题,最基本的登录都不正常。经过对agsxmpp协议分析和跟踪,发现了两个问题:
1.认证协议
agsxmpp在认证的时候,默认使用DIGEST-MD5,但是在Openfire下无法认证通过,改成PLAIN即可。
2.Iq节
Openfire 不支持Iq节带 to 的属性,所以在agsxmpp中发送Iq节的时候先iq.RemoveAttribute("to")一下就行了。
通过上述修改,成功的实现了agsxmpp的客户端演示程序和Openfire的互联互通。 下图是使用agsxmpp的客户端与Spark的互通。
查看全文
相关阅读:
TIF转JPG
跨线程取出控件的值的写法(不是跨线程赋予控件值)
oracle根据正则表达式查找对应的字段
oracle数据库连接字符串
access检测表没有的字段,添加之
解决 Unable to load DLL 'OraOps9.dll': 找不到指定的模块。 (Exception from HRESULT: 0x8007007E)
oracle关键字使用
to_number,Extract oracle的关键字
OracleCommand.CommandText 无效
调用带参数的线程两种方法
原文地址:https://www.cnblogs.com/nevermad/p/1606075.html
最新文章
(OK) init: Service exec 1 (/system/bin/logwrapper) does not have a SELinux domain defined.
[Android]
SurfaceFlinger/gralloc Out of Memory error when allocating buffer memory for use with virtual frame
Android x86如何启动到图形界面 device/generic/common/init.sh 分析
init: Service powerbtn does not have a SELinux domain defined.
SEAndroid安全机制框架分析
Apple seems to also believe in Multipath TCP
Use Multipath TCP to create backup connections for iOS
揭开 iOS 7 之 Multipath TCP 的面纱
哪些开源项目值得投注
热门文章
【hdu 6406】Taotao Picks Apples
【hdu 6396】Swordsman
【Educational Codeforces Round 48 (Rated for Div. 2) C】 Vasya And The Mushrooms
【Codeforces Round #502 (in memory of Leopoldo Taravilse, Div. 1 + Div. 2) D】The Wu
【hdu 6351】Beautiful Now
【Educational Codeforces Round 48 (Rated for Div. 2) D】Vasya And The Matrix
【hdu 6333】Harvest of Apples
【hdu 6336】 Matrix from Arrays
【hdu 6342】Expression in Memories
【hdu 6319】Ascending Rating
Copyright © 2011-2022 走看看