I am trying to create a plugin for openfire that creates packets and then sends them. how can I do this in openfire? I know how to intercept packets from a plugin and then either discard it or send it but don’t know how if I want to send packets.
It depends somewhat on what caused the failure. If an interceptor rejects it the message the router will try to be sent the packet back to the sender. Other failures such as sending the packet to a non-existent JID are difficult to detect. If guaranteed packet delivery is necessary you’ll probably have to create your own ACK implementation.
Maybe I’m saying something fool but…as xmpp connection is build over a TCP protocol then you don’t have to worry about packet loss as if, for example, the other xmpp server is down you will get some kind of exception…