add TestDDAResponse
[jSite2.git] / src / net / pterodactylus / util / fcp / FcpListener.java
index c949d48..f34cd0d 100644 (file)
@@ -21,14 +21,6 @@ package net.pterodactylus.util.fcp;
 
 import java.util.EventListener;
 
-import net.pterodactylus.util.fcp.message.CloseConnectionDuplicateClientName;
-import net.pterodactylus.util.fcp.message.EndListPeerNotes;
-import net.pterodactylus.util.fcp.message.EndListPeers;
-import net.pterodactylus.util.fcp.message.NodeHello;
-import net.pterodactylus.util.fcp.message.Peer;
-import net.pterodactylus.util.fcp.message.PeerNote;
-import net.pterodactylus.util.fcp.message.SSKKeypair;
-
 /**
  * Interface for objects that want to be notified on certain FCP events.
  * 
@@ -96,7 +88,7 @@ public interface FcpListener extends EventListener {
         * @param peerNote
         *            The “PeerNote” message
         */
-       public void receviedPeerNote(FcpConnection fcpConnection, PeerNote peerNote);
+       public void receivedPeerNote(FcpConnection fcpConnection, PeerNote peerNote);
 
        /**
         * Notifies a listener that an “EndListPeerNotes” message was received.
@@ -109,6 +101,36 @@ 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 receivedPeerRemoved(FcpConnection fcpConnection, PeerRemoved peerRemoved);
+
+       /**
+        * Notifies a listener that a “NodeData” message was received.
+        * 
+        * @param fcpConnection
+        *            The connection that received the message
+        * @param nodeData
+        *            The “NodeData” message
+        */
+       public void receivedNodeData(FcpConnection fcpConnection, NodeData nodeData);
+
+       /**
+        * Notifies a listener that a “TestDDAReply” message was received.
+        * 
+        * @param fcpConnection
+        *            The connection that received the message
+        * @param testDDAReply
+        *            The “TestDDAReply” message
+        */
+       public void receivedTestDDAReply(FcpConnection fcpConnection, TestDDAReply testDDAReply);
+
+       /**
         * 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!