Bram writes:

> I'm trying to change the logic to decide which neigbor to send a file to
> to be based on comparison in a ring - where's the code which does this? I
> just spent a while trying to figure it out.

Changing the forwarding logic should not be done lightly, as it is important
that all nodes use the same logic so that requests can find inserted data.

However, the basic function is findClosestKey in node/StandardDataStore.java.

> I've got freenet running - is it connected to anything already? If so,
> how'd it find it? If not, how do I get it to do that?

In node/Node.java, main calls inform calls informRead to read data from a
URL which has a list of other nodes that your node uses to start with.
The URL is specified in the .freenetrc file.

Also, informWrite in that module publishes your nodes's address to that
list, so that other fetches to that URL will find your node.  The size
of the public list is limited so you find only the most recent 20 or
so nodes.

> Where's the Python client code to Freenet?

I've never used this, but it looks to be fnclient and freenetlib in the
contrib directory.

Hope this helps -

Hal

_______________________________________________
Freenet-dev mailing list
Freenet-dev at lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/freenet-dev

Reply via email to