Author: toad
Date: 2009-04-09 22:15:10 +0000 (Thu, 09 Apr 2009)
New Revision: 26688
Modified:
trunk/plugins/MDNSDiscovery/MDNSDiscovery.java
Log:
Version MDNSDiscovery
Modified: trunk/plugins/MDNSDiscovery/MDNSDiscovery.java
===================================================================
--- trunk/plugins/MDNSDiscovery/MDNSDiscovery.java 2009-04-09 22:14:11 UTC (rev 26687)
+++ trunk/plugins/MDNSDiscovery/MDNSDiscovery.java 2009-04-09 22:15:10 UTC (rev 26688)
@@ -15,6 +15,7 @@
import freenet.config.Config;
import freenet.pluginmanager.FredPlugin;
import freenet.pluginmanager.FredPluginHTTP;
+import freenet.pluginmanager.FredPluginRealVersioned;
import freenet.pluginmanager.PluginHTTPException;
import freenet.pluginmanager.PluginRespirator;
import freenet.support.HTMLNode;
@@ -33,13 +34,14 @@
* TODO: Plug into config. callbacks to reflect changes @see #1217
* TODO: Maybe we should make add forms onto that toadlet and let the user choose what to advertise or not
*/
-public class MDNSDiscovery implements FredPlugin, FredPluginHTTP {
+public class MDNSDiscovery implements FredPlugin, FredPluginHTTP, FredPluginRealVersioned {
public static String freenetServiceType = "_freenet._udp.local.";
private volatile boolean goon = true;
private JmDNS jmdns;
private Config nodeConfig;
private LinkedList ourAdvertisedServices, ourDisabledServices, foundNodes;
private PluginRespirator pr;
+ private static final long version = 1;
/**
* Called upon plugin unloading : we unregister advertised services
@@ -256,4 +258,8 @@
str = str.substring(0, 62);
return str;
}
+
+ public long getRealVersion() {
+ return version;
+ }
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.