mirror of
https://github.com/Syncplay/syncplay
synced 2024-12-23 23:32:55 +00:00
15 lines
451 B
Python
15 lines
451 B
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()
|