diff --git a/client.py b/client.py old mode 100644 new mode 100755 --- a/client.py +++ b/client.py @@ -24,6 +24,9 @@ nodeStack=collections.deque([0]) # root incoming=networkReader.output # synchronized message queue outcoming=networkWriter.input +# initialize session +jsonData={"command":"init", "blockSize":localTree.BLOCK_SIZE, "blockCount":localTree.leafCount} +outcoming.put((jsonData,b"")) # determine which blocks to send while len(nodeStack)>0: