2012-10-12 16:37:12 +00:00
|
|
|
#coding:utf8
|
|
|
|
|
|
|
|
from twisted.internet import reactor
|
|
|
|
|
2012-12-13 21:51:31 +00:00
|
|
|
from syncplay.server import SyncFactory, SyncIsolatedFactory
|
2012-10-12 16:37:12 +00:00
|
|
|
from syncplay.ui.ConfigurationGetter import ServerConfigurationGetter
|
|
|
|
|
|
|
|
argsGetter = ServerConfigurationGetter()
|
|
|
|
args = argsGetter.getConfiguration()
|
2012-12-13 21:51:31 +00:00
|
|
|
if(not args.isolate_rooms):
|
|
|
|
reactor.listenTCP(int(args.port), SyncFactory(args.password))
|
|
|
|
else:
|
|
|
|
reactor.listenTCP(int(args.port), SyncIsolatedFactory(args.password))
|
2012-10-12 16:37:12 +00:00
|
|
|
reactor.run()
|