kademlia/server.tac

10 lines
299 B
Python
Raw Normal View History

2014-01-04 20:27:45 +01:00
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)