collect-master.py 452 Bytes
Newer Older
1
2
3
4
#!/usr/bin/python
from twisted.internet import reactor
from twisted.internet.endpoints import TCP6ServerEndpoint
from client import ClientFactory
5
from plugin import Plugins
6
import count_plugin
7
import buckets_plugin
8

9
10
plugins = Plugins()
count_plugin.CountPlugin(plugins)
11
buckets_plugin.BucketsPlugin(plugins)
12
13
14
15
# Some configuration, to load the port from?
endpoint = TCP6ServerEndpoint(reactor, 5678)
endpoint.listen(ClientFactory(plugins))
reactor.run()