Unless there is a better idea you can just use the node version.  After you
finish the new format, released in build X, if build greater than or equal
to X use the new format.

On May 21, 2010 9:12 AM, "Martin Nyhus" <martin.nyhus at gmx.com> wrote:

I've tried to think about how to implement the new packet format, while
keeping the old code around. My plan so far is to move all the FNP
related code from PeerNode to a new class, and have PeerNode use the
old code through this class.

The new code can then be added without touching FNP, and PeerNode will
choose which format to use for each peer. At the moment I'm not sure
how to select which format to use. It obviously depends on the peer, so
is there anything in the node ref that can be used to decide that the
peer supports 'FNP v2'? If not, can something be added without breaking
old nodes, or is there a better way of doing this?

_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://osprey.vm.bytemark.co.uk/cgi-bin/mailman/listinfo/devl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20100521/470eb030/attachment.html>

Reply via email to