ConnectionKeeper

Another step towards cleaning up the LocalPeer is to move the code of stayConnected() to a separate class. Of course, it does not make much sense to have a class with a single simple function. The point is that the algorithm, which picks up node addresses from the NodeCache, is quite simple now and can definitely be improved. Having this new class facilitates extensibility and improves design.

The Gnutella bootstrapping logic should be implemented here. One of the tasks of the ConnectionKeeper would be, for example, to query a UHC (UDP host cache) or a GWebCache in case the NodeCache is empty or its entries are too old.

The patch is based on my latest SlotAllocator patch and is committed in revision 6.

Would you like to post a relpy?


This post starts a thread.
No follow-ups yet.