运行自定义 XMPP 服务器应用程序有多容易? [英] How easy is it to get a custom XMPP server-app running?

查看:25
本文介绍了运行自定义 XMPP 服务器应用程序有多容易?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

参考这个问题,XMPP 被提及为 IM 互操作性的开放标准.

With reference to this question, XMPP was mentioned as the open standard for IM interoperability.

对于我的应用程序,如果我使用 XMPP 进行内部客户端-服务器通信,或者开发自己的内部协议但在服务器上使用 XMPP 以允许以后与其他服务器进行通信,那么最大的选择就是.我的直觉是后者会更容易,也许我高估了使用现有 Jabber 服务器或 XMPP 服务器库并构建自定义服务器应用程序需要多少工作?

For my app the big choice there would be if I use XMPP for internal client-server communication, or develop my own internal protocol but use XMPP on the server to allow communication with other servers, at a later date. My gut feeling is the latter would be easier, but maybe I'm overestimating how much work it would be to take an existing Jabber server or XMPP server libs and build a custom server app?

如果我的客户端总是与我的服务器交谈,从不直接与其他服务器交谈,那么使用 XMPP 是明智还是过度?

If my client will always talk to my server, never directly to other servers, is using XMPP sensible or overkill?

假设我想拥有自己的用户、消息、群组和自定义数据数据库.使用 XMPP 进行设置以便我可以自由地将数据发送到我的服务器并让我的自定义服务器逻辑处理它实际上涉及什么?是否有任何库允许我运行一个骨架"XMPP 服务器,在那里我提供我自己的处理程序,这些处理程序在收到消息时被调用等?

Say I want to have my own DB for users, messages, groups, and custom data. What's actually involved getting this set up using XMPP so that I can freely send data to my server, and have my custom server logic handle it? Do any of the libraries out there allow me to run a 'skeleton' XMPP server where I provide my own handlers which are called when messages are received, etc?

我了解了 XMPP 的整体概念,但在我真正开始的地方有点迷茫,甚至在我需要 Jabber 服务器应用程序还是周围的开源服务器库之一之间进行区分的程度.

I get the overall idea of XMPP but am a bit lost where I'd actually start with it, even to the extent of differentiating between whether I'd need a Jabber server app or one of the open-source server libraries around.

还有许可问题.我当然不打算开源主要代码库,如果我要使用 GPL XMPP 解决方案进行客户端-服务器通信,我的理解是我会努力不使用 GPL 污染"我的代码.

There's also the licensing issue. I certainly don't plan to open-source the main code-base and if I were to use a GPL XMPP solution for client-server communication, my understanding is I'd struggle not to 'taint' my code with GPL.

推荐答案

如果你在 linux 下很容易

Quite easy if you are under linux

sudo apt-get install ejabberd

然后您可以将首选的 IM 客户端指向 localhost:5222 就完成了.当然,如果你想要一个域名等,需要更多的配置/安装东西,但我认为这不是你想要的.

then you can point your preferred IM client to localhost:5222 and you are done. For sure if you want a domain name, etc. more configuration/installation stuff will needed, but I think this is not what are you asking for.

注意:ejabberd 也有 windows 版本,http://www.process-one.net/en/ejabberd/downloads

Note: There is also a windows version for ejabberd, http://www.process-one.net/en/ejabberd/downloads

这篇关于运行自定义 XMPP 服务器应用程序有多容易?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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