LimeWire Consolidated API

com.limegroup.gnutella
Interface MessageListener

All Known Implementing Classes:
PingRanker

public interface MessageListener

This interface should be extended if you want to get notified of certain messages. The MessageRouter will process messages as usual but then hand off messages (by guid) for special handling. You have to register with the MessageRouter for this.


Method Summary
 void processMessage(Message m, ReplyHandler handler)
          Callback for processing a message.
 void registered(byte[] guid)
          Callback notifying this MessageListener that it is now registered for listening to message with the specified guid.
 void unregistered(byte[] guid)
          Callback notifying this MessageListener that it is now unregistered for listening to messages with the specified guid.
 

Method Detail

processMessage

void processMessage(Message m,
                    ReplyHandler handler)
Callback for processing a message. This is intended to be used for processing messages with a specific GUID.


registered

void registered(byte[] guid)
Callback notifying this MessageListener that it is now registered for listening to message with the specified guid.


unregistered

void unregistered(byte[] guid)
Callback notifying this MessageListener that it is now unregistered for listening to messages with the specified guid.


LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.