Author: saces
Date: 2007-11-17 23:09:20 +0000 (Sat, 17 Nov 2007)
New Revision: 15809
Modified:
trunk/plugins/HelloFCP/HelloFCP.java
Log:
update HelloFCP plugin (new flag)
doc
Modified: trunk/plugins/HelloFCP/HelloFCP.java
===================================================================
--- trunk/plugins/HelloFCP/HelloFCP.java 2007-11-17 23:04:39 UTC (rev
15808)
+++ trunk/plugins/HelloFCP/HelloFCP.java 2007-11-17 23:09:20 UTC (rev
15809)
@@ -24,7 +24,21 @@
}
- public FCPMessage create(String name, SimpleFieldSet fs) {
+ /**
+ * sample command:
+ * <pre>
+ * plugins.HelloFCP.HelloFCP.Ping
+ * EndMessage
+ * </pre>
+ * the node have found our class (plugins.HelloFCP.HelloFCP) and want
now to
+ * know what to do with "Ping"
+ *
+ * the fullaccess flag is set true if the client comes from an adress
with full fcp access,
+ * otherwise false
+ *
+ * @see freenet.pluginmanager.FredPluginFCP#create(java.lang.String,
freenet.support.SimpleFieldSet, boolean)
+ */
+ public FCPMessage create(String name, SimpleFieldSet fs, boolean
fullaccess) {
if(name.equals(PingMessage.name))
return new PingMessage(fs);