package net.pterodactylus.util.fcp;
import java.util.EventListener;
-import java.util.Map;
-
/**
- * TODO
+ * Interface for objects that want to be notified on certain FCP events.
+ *
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
* @version $Id$
*/
public interface FcpListener extends EventListener {
- public void fcpConnected(FcpConnection fcpConnection);
- public void fcpDisconnected(FcpConnection fcpConnection);
-
- //
- // connection setup
- //
-
- public void fcpNodeHello(FcpConnection fcpConnection, Map<String, String> nodeProperties);
- public void fcpCloseConnectionDuplicateName(FcpConnection fcpConnection);
-
-
+ /**
+ * Notifies listeners that a message has been received.
+ *
+ * @param fcpConnection
+ * The connection that received the message
+ * @param fcpMessage
+ * The message that was received
+ */
+ public void receivedMessage(FcpConnection fcpConnection, FcpMessage fcpMessage);
+
}