syncplay/syncplayServer.py

16 lines
575 B
Python
Raw Normal View History

2012-12-29 11:47:02 +00:00
#!/usr/bin/env python
2012-10-12 16:37:12 +00:00
#coding:utf8
from twisted.internet import reactor
from syncplay.server import SyncFactory, SyncIsolatedFactory, ConfigurationGetter
2012-10-12 16:37:12 +00:00
argsGetter = ConfigurationGetter()
2012-10-12 16:37:12 +00:00
args = argsGetter.getConfiguration()
if(not args.isolate_rooms):
reactor.listenTCP(int(args.port), SyncFactory(args.password, args.motd_file, args.http_reply_file, args.irc_config_file, args.irc_verbose))
else:
reactor.listenTCP(int(args.port), SyncIsolatedFactory(args.password, args.motd_file, args.http_reply_file, args.irc_config_file, args.irc_verbose))
2012-10-12 16:37:12 +00:00
reactor.run()