在哪里可以找到好的 XMPP (Jabber) 教程?

发布于 2024-08-28 14:07:18 字数 1536 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

天荒地未老 2024-09-04 14:07:18

我支持“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.

难忘№最初的完美 2024-09-04 14:07:18

我强烈推荐 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.

动次打次papapa 2024-09-04 14:07:18

不是教程,但一个很好的开始方式是使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文