Update from the p2p front
Cees de Groot
cg at cdegroot.com
Thu Mar 3 21:52:50 UTC 2005
Hi all,
News from the p2p front:
- Lots of little patches. Some notable stuff:
- there's now a singleton peer class, which writes out the UUID in a
file in the current directory. This
class is used by the examples. Keeping a single UUID should help in
making the small network a bit
cleaner and more stable;
- when starting up, the seed list is used to broadcast a peer list
exchange to all listed peers. This
should get the node hooked up in seconds;
- logging is channeled to AWGPeer class side methods, where AWGPeer
class>>isDebugging: can toggle
logging (default is off);
- presence information is exchanged even if there's nothing to say.
Again, this helps in getting the
node hooked up to the network quicker.
- the MC sample now uses a two-stage protocol - all peers that announced
presence for the file are
asked whether the file is there; peers that answer are then queued up
and asked one by one to
send the file. In theory, the peer that answers quickest gets the first
chance to send the file and
this would typically succeed; peers that are slow to respond are kept as
backup. The code is a bit
complex, and UNTESTED!
Some cleanups are still needed - shutting down a peer still leaves some
processes running - but all in all the code is shaping up nicely. At the
moment, loading the package and executing 'AWGSingletonPeer default'
should hook you up into the network in mere seconds. A bit later, the
first MC information should be available if you add a Tric P2P type
repository.
As usual, feedback mostly welcome.
Regards,
Cees
More information about the Squeak-dev
mailing list
|