added roadmap + fix indent error in main

This commit is contained in:
Roel 2014-04-24 19:32:02 +02:00
parent 590a4f5d98
commit fee99a041c
3 changed files with 9 additions and 2 deletions

View File

@ -17,7 +17,7 @@ mount -t ext4 /dev/sda1 /mnt/sda1
echo 'Cleaning USB drive'
rm -r /mnt/sda1
rm -r /mnt/sda1/
sleep 4

View File

@ -48,6 +48,7 @@ class Meshenger:
while True:
print 'Entering main loop'
#
if len(self.devices) > 0:
print 'found', len(self.devices),'device(s)'
@ -187,7 +188,7 @@ Get new messages from other node based on it's index file
Convert a node's ip into a hash and make a directory to store it's files
"""
if not os.path.exists('nodes'):
os.mkdir('nodes')
os.mkdir('nodes')
import hashlib
hasj = hashlib.md5(ip).hexdigest()

6
meshenger_roadmap Normal file
View File

@ -0,0 +1,6 @@
-find a way to prioritize the index/message download threads. Perhaps these threads could tell other threads to pause?
-nodes that are new to the network don't immediately download indices from the other nodes
-nodes that disconnect from the network should be removed from lists of known devices