Author: toad
Date: 2007-09-07 14:33:05 +0000 (Fri, 07 Sep 2007)
New Revision: 14997

Added:
   trunk/freenet/src/freenet/pluginmanager/FredPluginNotifyPublicPorts.java
Log:
Add new plugin interface for automatic port forwarding plugins (i.e. UP&P at 
the moment).

Added: trunk/freenet/src/freenet/pluginmanager/FredPluginNotifyPublicPorts.java
===================================================================
--- trunk/freenet/src/freenet/pluginmanager/FredPluginNotifyPublicPorts.java    
                        (rev 0)
+++ trunk/freenet/src/freenet/pluginmanager/FredPluginNotifyPublicPorts.java    
2007-09-07 14:33:05 UTC (rev 14997)
@@ -0,0 +1,14 @@
+/* This code is part of Freenet. It is distributed under the GNU General
+ * Public License, version 2 (or at your option any later version). See
+ * http://www.gnu.org/ for further details of the GPL. */
+package freenet.pluginmanager;
+
+/** A plugin which must be notified when fred's list of public ports changes.
+ * @author amphibian */
+public interface FredPluginNotifyPublicPorts {
+
+       /** Tell the plugin that our public ports list has changed. Called on 
startup and any time our ports
+        * list changes. */
+       public void onChangePublicPorts(int[] ports);
+       
+}


Reply via email to