X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Futil%2Ffcp%2FFcpListener.java;h=8b2c6212e36e6d283b09f60b7b1d9d940b66332d;hb=a238aa37f5716eb715f18a37a436d3ca792e33b0;hp=aa8147bb2777b143ee1bc8f372d1e3ec01d90d3e;hpb=474a0f39c87d520b0ce8c23ea8e8046441e13ea7;p=jSite2.git diff --git a/src/net/pterodactylus/util/fcp/FcpListener.java b/src/net/pterodactylus/util/fcp/FcpListener.java index aa8147b..8b2c621 100644 --- a/src/net/pterodactylus/util/fcp/FcpListener.java +++ b/src/net/pterodactylus/util/fcp/FcpListener.java @@ -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!