5

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

4

1 に答える 1

2

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.

于 2013-08-06T02:20:14.140 に答える