[mnet-devel] basic interface for new net

Zooko zooko at zooko.com
Sat May 3 19:25:22 BST 2003


I've named the new net stuff "ent", and cvs added ent.py [1], which contains the 
following basic interface:

class Node:
    def fetch_blocks(self, blockIds, callback):
        """
        @param blockIds a sequence of blockIds
        @param callback: function to call when we get a block, must have args
            C{callback(block_id, block_data)}
        """

    def store_block(self, blockId, blockdata):

--Z

[1] http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/mnet/mnet_new/mnetlib/Attic/ent.py?rev=1.1.2.1&only_with_tag=newnet&hideattic=0&content-type=text/vnd.viewcvs-markup


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
mnet-devel mailing list
mnet-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mnet-devel




More information about the Mnet-devel mailing list