在 Java 中为自己的 IM 服务器/服务寻找简单的即时消息协议

发布于 2024-07-24 01:44:53 字数 333 浏览 2 评论 0原文

我正在考虑用 Java 实现一个简单的即时消息服务器,但我不想创建另一个协议,而是使用一个已经很简单的 IM 协议。 但我不知道应该使用哪种协议。

我想使用现有的 IM 协议的原因是我希望我的“用户”能够使用他们自己的客户端,例如 pidgin - 它已经提供了广泛的协议,例如 XMPP、Simple 、Bonjour 等等——而且我不需要开发任何客户。

我看起来有点像 XMPP,但由于大量工作将该协议嵌入到新服务器中。 也许还有其他更容易使用的协议?

我的问题是,你们对 Java 中真正基本且易于使用的协议有什么建议吗? Pidgin 支持一大堆协议,但哪些协议与我相关?

I am thinking of implementing an easy Instant Messaging server in Java, but I don't want to create yet another protocol, but instead use an already simple IM-protocol. But I don't know which protocol I should use.

The reason Why I want to use an already existing IM-protocol, is that I would like my 'users' to be able to use their own clients, for example pidgin - which already offers a wide spread of protocols, such as XMPP, Simple, Bonjour, etc - and I don't have to develop any clients.

I have looked a bit a XMPP but it since a lot of work embed that protocol into a new server. Maybe there are other protocols that are easier to use?

My questions is, do you guys have any suggestions of protocols that are real basic and easy to use in Java? Pidgin supports a whole bunch of protocols, but which protocols are relevant for me?

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

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

发布评论

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

评论(3

<逆流佳人身旁 2024-07-31 01:44:53

XMPP 被广泛使用并且有标准支持。 如果您使用现有的库,那么它非常容易使用 - 有许多多种语言的客户端库。 谷歌说有很多java

使用 XMPP 的一个优点是您的服务器可以充当网络上所有其他 Xmpp/Jabber 服务器的网关,因此您的用户可以进行通话。 在您的网络之外 - 就像使用标准 JID 地址登录 GoogleTalk 的人一样,例如 [email]受保护]/桌面。

XMPP is widely used and has standards backing behind it. It is pretty easy to use if you use an existing library - there are many client libraries for it in many languages. The google says there are many in java.

An advantage of using XMPP is that your server can act as a gateway to all the other Xmpp/Jabber servers on the net, so your users can talk in & out of your network - like to people logged into GoogleTalk, using standard JID addresses, like [email protected]/desktop.

笑,眼淚并存 2024-07-31 01:44:53

为了获得最广泛的支持,我会选择 XMPP/Jabber。 确实没有其他选择。

For the widest support I would go with XMPP/Jabber. There's no other choice really.

夏见 2024-07-31 01:44:53

根据这个线程,用 Java 开发 XMPP 服务器似乎很痛苦:

适用于服务器端的良好 XMPP Java 库?

甚至有评论指出,使用现有服务器比使用库从头开始创建服务器更好。

According to this thread, it seems like a pain to develop an XMPP-server in Java:

Good XMPP Java Libraries for server side?

Even one comment stated that its better of using an existing server instead of creating one from scratch with a library.

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