构建 Openfire XMPP 外部组件 - 使用 Tinder 还是 Whack?
我正在尝试为 Openfire XMPP 服务器构建一个外部组件,但我对 Tinder 和 Whack 有点困惑。 Tinder 似乎是较新的库,并且具有 Ignite Realtime 推荐的 AbstractComponent 接口而不是标准组件,但是,每当有人谈论构建外部组件时,他们似乎都在使用 Whack 库。
我应该使用 Tinder 还是 Whack?或者两者兼而有之?
非常感谢
I'm trying to build an external component for the Openfire XMPP server, but I'm a bit confused between Tinder and Whack. Tinder seems to be the newer library and has the AbstractComponent interface which Ignite Realtime are recommending over the standard Component, however, whenever anyone talks about building an external component, they seem to be using the Whack library.
Should I be using Tinder or Whack? Or a bit of both?
Many thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Tinder 利用 Whack 库并将组件包装在抽象组件接口中,因此如果不需要,您不必实现处理所有类型数据包的所有方法。
查看天气示例的来源。
还值得查看 whack 源以了解它如何处理数据包,因为这是最终连接到服务器并发送数据包的内容。
就我个人而言,我使用 whack 的外部组件管理器,并使用 tinder 设置一个抽象组件,这正是 Weatherabstract 示例的作用。
这是最好的起点。
Tinder utilises the Whack library and wraps the component in an abstract component interface so you don't have to implement all the methods for handling all types of packets if you don't need to.
Have a look at the source for the weather example.
It's also worth looking at the whack source to see how it handles the packets as this is what is ultimately connecting to your server and sending packets.
Personally I use the externalcomponent manager from whack and setup an abstract component using tinder which is exactly what the weatherabstract example does.
That's the best place to start.