XMPPConnection.sendPacket()

How does XMPPConnection.sendPacket(Packet p) work? Does it send the given packet asychronously? (i.e., nonblocking?) Is this why there is no exception thrown by the method?

If the connection fails to send the packet, how would the client (who invoked the call) know?

Thanks.

Aigoo

Aigoo,

Yes, it is sent asynchronously. The only case where a packet would fail to be sent is if the connection dies, which you can listen for with a connection listener.

Regards,

Matt