Move the DHT stuff out of the main program and into the new DHTManager module.
[quix0rs-apt-p2p.git] / apt_p2p / __init__.py
index 8ef0daef5f47306dc7ab33ab4dbdaf2f48ceefa0..e0ca4988fd6e780ef107b6354ff45bccf18b3fcb 100644 (file)
@@ -10,15 +10,15 @@ where DHT is a class that implements interfaces.IDHT.
 
 Diagram of the interaction between the given modules::
   
-  +---------------+    +-----------------------------------+    +-------------
-  |     AptP2P    |    |               DHT                 |    |  
-  |               |--->|join                            DHT|----|--\    
-  |               |--->|loadConfig                         |    |  | Another
-  |               |--->|getValue                           |    |  | Node
-  |               |--->|storeValue                      DHT|<---|--/
-  |               |--->|leave                              |    |
-  |         /-----|--->|getStats                           |    |
-  |         |     |    +-----------------------------------+    | Internet
+  +---------------+    +-------------+    +----------------+    +-------------
+  |     AptP2P    |    | DHTManager  |    |      IDHT      |    |  
+  |               |--->|start        |--->|join         DHT|----|--\    
+  |               |    |             |--->|loadConfig      |    |  | Another
+  |               |--->|get          |--->|getValue        |    |  | Node
+  |               |--->|store        |--->|storeValue   DHT|<---|--/
+  |               |    |             |--->|leave           |    |
+  |         /-----|--->|getStats     |--->|getStats        |    |
+  |         |     |    +-------------+    +----------------+    | Internet
   |         |     |    +-------------+    +----------------+    |
   |         |     |    | PeerManager |    | HTTPDownloader*|    |
   |         |     |--->|get          |--->|get         HTTP|----|---> Mirror