We probably should define a range. I'd say 0-9999 are reserved for the 
node and 65000+ are reserved for experimental, "unregistered" use.  
10000-64999 are available to be "well known" types registered through a 
request to a dev with commit access to the node's repo.

As for FCP access to N2NMs, I've planned that for a long while now, but 
my plans are a little elaborate and I haven't really started sorting out 
the details in my head or anything.  Perhaps the bug will bite in the 
coming weeks.

Matthew Toseland wrote:
> We should really define a range which can be used by the node, so that 
> numbers 
> above that can be used by applications when we implement FCP layer use of 
> this mechanism (which IMHO is long overdue and would open up some interesting 
> darknet collaboration possibilities e.g. send bookmark to peer, send thaw 
> index to peer etc).
>
> On Sunday 06 January 2008 22:51, zothar at freenetproject.org wrote:
>   
>> Author: zothar
>> Date: 2008-01-06 22:51:49 +0000 (Sun, 06 Jan 2008)
>> New Revision: 16954
>>
>> Modified:
>>    trunk/freenet/src/freenet/node/Node.java
>>    trunk/freenet/src/freenet/node/PeerNode.java
>> Log:
>> Implement processing of received differential node references. It may be a 
>>     
> bit before I get sending implemented.
>   
>> Modified: trunk/freenet/src/freenet/node/Node.java
>> ===================================================================
>> --- trunk/freenet/src/freenet/node/Node.java 2008-01-06 22:09:51 UTC (rev 
>>     
> 16953)
>   
>> +++ trunk/freenet/src/freenet/node/Node.java 2008-01-06 22:51:49 UTC (rev 
>>     
> 16954)
>   
>> @@ -2576,8 +2576,20 @@
>>                              throw new Error(e);
>>                      }
>>              } else if(type == Node.N2N_MESSAGE_TYPE_DIFFNODEREF) {
>> -                    // FIXME: Not yet implemented
>>                      Logger.normal(this, "Received differential node 
>> reference node to node 
>>     
> message from "+src.getPeer());
>   
>> +                    SimpleFieldSet fs = null;
>> +                    try {
>> +                            fs = new SimpleFieldSet(new 
>> String(messageData.getData(), "UTF-8"), 
>>     
> false, true);
>   
>> +                    } catch (IOException e) {
>> +                            Logger.error(this, "IOException while parsing 
>> node to node message 
>>     
> data", e);
>   
>> +                            return;
>> +                    }
>> +                    try {
>> +                            src.processDiffNoderef(fs);
>> +                    } catch (FSParseException e) {
>> +                            Logger.error(this, "FSParseException while 
>> parsing node to node message 
>>     
> data", e);
>   
>> +                            return;
>> +                    }
>>              } else {
>>                      Logger.error(this, "Received unknown node to node 
>> message 
>>     
> type '"+type+"' from "+src.getPeer());
>   
>>              }
>>
>> Modified: trunk/freenet/src/freenet/node/PeerNode.java
>> ===================================================================
>> --- trunk/freenet/src/freenet/node/PeerNode.java     2008-01-06 22:09:51 UTC 
>>     
> (rev 16953)
>   
>> +++ trunk/freenet/src/freenet/node/PeerNode.java     2008-01-06 22:51:49 UTC 
>>     
> (rev 16954)
>   
>> @@ -1934,6 +1934,14 @@
>>      }
>>  
>>      /**
>> +    * Process a differential node reference
>> +    * The identity must not change, or we throw.
>> +    */
>> +    public void processDiffNoderef(SimpleFieldSet fs) throws 
>> FSParseException 
>>     
> {
>   
>> +            processNewNoderef(fs, false, true);
>> +    }
>> +
>> +    /**
>>      * Process a new nodereference, in compressed form.
>>      * The identity must not change, or we throw.
>>      */
>>
>> _______________________________________________
>> cvs mailing list
>> cvs at freenetproject.org
>> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
>>
>>
>>     
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Devl mailing list
>> Devl at freenetproject.org
>> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl


-- 
David R. Sowder, Linux Systems Admin (Software Systems Specialist II)
Office of Information Technology, University of Texas at Arlington
    Work: 817-272-1081  davids at uta.edu    http://www.uta.edu/
                        davids at talk.uta.edu (Jabber)
Personal:               david at sowder.com  http://david.sowder.com/


Reply via email to