Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 11 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
我支持“XMPP:权威指南”,作为真正了解幕后发生的事情的一种方式。它非常容易理解,并且确实有足够的深度,您可以在事后自己解决问题。
不过,我建议您不要阅读“专业 XMPP 编程”一书。我一起购买了这两本书,但我什至无法运行后一本书中的一个示例应用程序,因为他使用的 BOSH 东西不起作用(较新的浏览器和他运行跨站点的实现存在问题)阿贾克斯)。论坛上有人对该书提出投诉,但基本上没有得到答复。
在检查了所有服务器和库之后,我可以推荐 ejabberd,因为它似乎是最稳定且易于设置的。对于库,我发现 MatriX 是最好的(也是唯一一个我可以真正对其进行编程的库)。我正在尝试使用 .Net,所以 YMMV MatriX 是上面提到的 agsxmpp 的较新版本。
I second "XMPP: The Definitive Guide" as a way to really understand what is happening behind-the-scenes. It's very accessible and does go into enough depth that you can figure things out for yourself afterwards.
I would recommend you not go with the "Professional XMPP Programming" book though. I purchased both of these together and I was not able to run even a single example app in the latter book as the BOSH stuff he is using would just not work (there is a problem with the newer browsers and his implementation of running cross-site AJAX). There are complaints on the forums for that book but are largely unanswered.
After going through all servers and libraries, I can recommend ejabberd as it seems to be the most stable and easy to set up. For libraries, I found MatriX to be the best (and only one that I could actually do any programming for). I am trying to use .Net though, so YMMV MatriX is the newer version of agsxmpp mentioned above.
我强烈推荐 O'Reilly 的 XMPP:权威指南。它详细介绍了如何构建节以及各种主要协议的要求。然而,除了最后一章之外,它没有任何代码。
我还建议使用现有的 C# 库之一来进行 XMPP 编程,而不是编写自己的库。处理 TLS、流设置和异步 XML 解析可能是一个很难开始的方法。为此,我可以推荐 Jabber-net。
如果您想要一个更注重代码的教程,我写了一本名为 专业 XMPP 编程 的书,其中介绍了许多示例应用程序使用JavaScript作为实现语言。主要概念同样适用于任何 XMPP 开发。
I can highly recommend XMPP: The Definitive Guide from O'Reilly. It goes into great detail about how stanzas are constructed and what the various major protocols require. It does not however have any code in it, aside from the final chapter.
I also recommend using one of the already available C# libraries for doing your XMPP programming instead of writing your own. Dealing with TLS, stream setup, and asynchronous XML parsing can be a hard way to get started. I can recommend Jabber-net for this.
If you want a tutorial that is more code focused, I wrote a book called Professional XMPP Programming that goes through a number of example applications using JavaScript as the implementation language. The main concepts all apply equally well to any XMPP development.
不是教程,但一个很好的开始方式是使用 Agsxmpp 库。 http://www.ag-software.de/agsxmpp-sdk.html
这将帮助您熟悉消息流。
Not a tutorial, but a great way to start is with the Agsxmpp library. http://www.ag-software.de/agsxmpp-sdk.html
That will help you gain familiarity with the flow of messages.