Пример #1
0
def dht_connect():
    dht = ProcessingDHT(
        addr="",
        port=45000,
        console_logging=True,
        log_level=logging.DEBUG,
    )
    dht.start()
Пример #2
0
def dht_connect():
    dht = ProcessingDHT(
                addr="",
                port=45000,
                console_logging=True,
                log_level=logging.DEBUG,
             )
    dht.start()
Пример #3
0
def dht_connect():
    parent, child = Pipe()
    dht = ProcessingDHT(addr="",
                        port=55000,
                        console_logging=True,
                        log_level=logging.DEBUG,
                        boot_addr="192.168.1.1",
                        boot_port=45000,
                        pipe=child)
    dht.start()
    sleep(5)
    dht["123"] = "values123"
Пример #4
0
def dht_connect():
    parent, child = Pipe()
    dht = ProcessingDHT(
                addr="",
                port=55000,
                console_logging=True,
                log_level=logging.DEBUG,
                boot_addr="192.168.1.1",
                boot_port=45000,
                pipe = child
             )
    dht.start()
    sleep(5)
    dht["123"] = "values123"