Windows Phone 7.5 中的 XMPP 聊天客户端 [英] XMPP chat client in Windows Phone 7.5

查看:23
本文介绍了Windows Phone 7.5 中的 XMPP 聊天客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从哪里开始?在 Windows Phone 7.5 中创建 XMPP 聊天客户端,因为它不可能使用 Jabber-Net 库.该库用于 .Net Windows 应用程序.我没有任何提示.任何开源库,如 agsXMPP(支持 .Net 压缩框架但不开源).有人可以帮我吗?

Where to begin? to create XMPP chat client in Windows Phone 7.5 as its not possible to use Jabber-Net library. This library is for .Net Windows application.I have no cues. Any open source library like agsXMPP(supports .Net compack framework but not open source).Could anybody help me please?

推荐答案

1) agsXMPP 是根据 GPL 许可的开源.你可以很容易地将它移植到 Wndows Phone.

2)主要问题是平台本身.XMPP 和大多数其他 IM 服务需要持久的套接字连接.Mango 现在有套接字,但是每当您的应用程序进入后台时,套接字就会断开连接,您将无法通过 XMPP 接收任何数据.当您的应用程序处于后台时,接收数据的唯一方法是 Microsoft 推送服务.正如 firebellys 所指出的,这就是 Marketplace 中没有多少 IM 应用程序的原因.您可以只使用推送并转换 XMPP <==> 推送到您的网络服务上,或者您使用两者的组合并仅使用推送来唤醒您的应用程序,然后重新连接套接字.

1) agsXMPP is Open Source licensed under the GPL. You can port it pretty easy to Wndows Phone.

2) The major problem is the platform itself. XMPP and most other IM services require a persistent socket connection. There are sockets in Mango now, but whenever your app goes in the background the socket gets disconnected and you are not able to receive any data over XMPP. When your app is in the background then the only way to receive data are the Microsoft Push services. As firebellys pointed out this is the reason why there are not many IM apps in the Marketplace. You either use push only and convert XMPP <==> Push on your webservice, or you use a combination of both and use Push only to wake up your app and then reconnect with sockets.

这篇关于Windows Phone 7.5 中的 XMPP 聊天客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆