add RemovePeer command and PeerRemoved reply
[jSite2.git] / src / net / pterodactylus / util / fcp / FcpListener.java
index aa8147b..8b2c621 100644 (file)
@@ -21,7 +21,6 @@ package net.pterodactylus.util.fcp;
 
 import java.util.EventListener;
 
-
 /**
  * Interface for objects that want to be notified on certain FCP events.
  * 
@@ -102,6 +101,16 @@ public interface FcpListener extends EventListener {
        public void receivedEndListPeerNotes(FcpConnection fcpConnection, EndListPeerNotes endListPeerNotes);
 
        /**
+        * Notifies a listener that a “PeerRemoved” message was received.
+        * 
+        * @param fcpConnection
+        *            The connection that received the message
+        * @param peerRemoved
+        *            The “PeerRemoved” message
+        */
+       public void receviedPeerRemoved(FcpConnection fcpConnection, PeerRemoved peerRemoved);
+
+       /**
         * Notifies a listener that a message has been received. This method is only
         * called if {@link FcpConnection#handleMessage(FcpMessage)} does not
         * recognize the message. Should that ever happen, please file a bug report!