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

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

问题描述

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

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 Push服务。正如firebellys所指出的,这就是Marketplace中没有太多IM应用程序的原因。您可以只使用push并在Web服务上转换XMPP< ==> Push,或者使用两者的组合并仅使用Push来唤醒您的应用程序,然后与套接字重新连接。

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天全站免登陆