Hammad Sayed

def get(self, file_id): return self.nodes.get(file_id)

# create a DHT dht = DHT()

# join the node to the DHT dht.put(hash_file(file_id), node)

import hashlib import socket import threading

# create a node node = Node('localhost', 8080) node.start()

Scroll to Top