Android:asmack(移植)还是 smack(修补)?
我在 google 和此处进行了大量搜索,以找到 XMPP 客户端的最佳功能 API。
我找到了以下两个:
asmack: .http://code.google.com/p/asmack/
打补丁:http://davanum .wordpress.com/2008/12/29/updated-xmpp-client-for-android/
我在互联网上找不到这两个API的任何比较,所以也许你可以帮助我选择哪一个。 ?
在修补的 smack 的原始文章中,他告知 TLS 不起作用(很好,我不应该使用它),我认为其余部分都有效。 另一方面,asmack 非常受欢迎,但是当我在网上阅读时,似乎它有更多的错误?
你建议我选择什么?
谢谢!
I have searched alot on google and in here to find the best featured API for XMPP client.
I have found the following two:
asmack: .http://code.google.com/p/asmack/
patched smack: http://davanum.wordpress.com/2008/12/29/updated-xmpp-client-for-android/
I cant find any comparison of these two APIs on the internet, so maybe you can help me in which one to choose.?
In the original article of the patched smack he inform that TLS does not work (thats fine I should not use that) I consume that the rest works.
On the other hand asmack is very popular but when I read around the net it seems that it is a little more buggy?
What do you advise me to choose?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
asmack 与 smack 几乎相同的代码,基本上他们所做的是一些代码重构,向扩展添加一些额外的方法,更改包顺序,还替换了 DNS 类以及与 Sasl 和身份验证相关的类。
http://groups.google .com/group/android-developers/browse_thread/thread/0a8a0fb16752ba52/631dcf2137e79e7f?lnk=raot&pli=1
如果你使用asmack,你不会有大问题。
asmack is almost the same code as smack, basically what they did is some code refactoring, add some extra methods to extension, changed package order, also they replace DNS class and classes related with Sasl and authentication.
http://groups.google.com/group/android-developers/browse_thread/thread/0a8a0fb16752ba52/631dcf2137e79e7f?lnk=raot&pli=1
If you use asmack you wont have major problem.
我确实建议避免 asmack 在我们上一个项目中,由于未解决的问题,我们遇到了很多问题:
http://code.google.com/p/asmack/issues/list
还可以使用其他替代方案:
https://stackoverflow.com/a/5487854/771300
I do recommend to Avoid asmack In our last project we faced so many problems due open issues :
http://code.google.com/p/asmack/issues/list
other alternatives are avilable:
https://stackoverflow.com/a/5487854/771300