syncplay/syncplayServer.py
2012-12-29 12:47:02 +01:00

16 lines
473 B
Python

#!/usr/bin/env python
#coding:utf8
from twisted.internet import reactor
from syncplay.server import SyncFactory, SyncIsolatedFactory
from syncplay.ui.ConfigurationGetter import ServerConfigurationGetter
argsGetter = ServerConfigurationGetter()
args = argsGetter.getConfiguration()
if(not args.isolate_rooms):
reactor.listenTCP(int(args.port), SyncFactory(args.password))
else:
reactor.listenTCP(int(args.port), SyncIsolatedFactory(args.password))
reactor.run()