Smack

org.jivesoftware.smack
Interface PacketListener


public interface PacketListener

Provides a mechanism to listen for packets that pass a specified filter. This allows event-style programming -- every time a new packet is found, the processPacket(Packet) method will be called. This is the opposite approach to the functionality provided by a PacketCollector which lets you block while waiting for results.

Author:
Matt Tucker
See Also:
XMPPConnection.addPacketListener(PacketListener, PacketFilter)

Method Summary
 void processPacket(Packet packet)
          Process the next packet sent to this packet listener.
 

Method Detail

processPacket

public void processPacket(Packet packet)
Process the next packet sent to this packet listener.

Parameters:
packet - the packet to process.

Smack

Copyright © 2003 Jive Software.