10 lines
299 B
Python
10 lines
299 B
Python
|
from twisted.application import service, internet
|
||
|
import sys, os
|
||
|
sys.path.append(os.path.dirname(__file__))
|
||
|
from kademlia.network import Server
|
||
|
|
||
|
application = service.Application("kademlia")
|
||
|
kserver = Server()
|
||
|
server = internet.UDPServer(1234, kserver.protocol)
|
||
|
server.setServiceParent(application)
|