Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
736 views
in Technique[技术] by (71.8m points)

sockets - XMPP chat client in Windows Phone 7.5

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...