Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想写一个聊天客户端。我可以为此使用 RMI,但我不想这样做。此外,我计划有一个网络界面。
我正在阅读有关 XMPP 协议以及google talk使用它的事实。如何实现它来编写我自己的聊天客户端,而不是任何其他 IM 服务的客户端?是否有任何可用的库可以帮助我实现自己的聊天服务(IM)?
看看Smack。其广泛使用且成熟的库,用于编写 xmpp 应用程序。下面是一个编写 xmpp 客户端的例子。这里还有一个例子。
xmpp 站点本身有许多可用的库。如果您使用 JAVA 编写 IM,您可以根据您的要求选择任何人XMPP Libraries Go for SMACK 。