def main(): parse_cmd() if sys.platform == 'darwin' and environ.get('TMUX') is not None: logger.error('Running Chrome inside tmux on OS X might cause problems.' ' Please start leapcast outside tmux.') sys.exit(1) def shutdown(signum, frame): #ssdp_server.shutdown() bonjour_server.shutdown() castsocket_server.shutdown() leap_server.sig_handler(signum, frame) signal.signal(signal.SIGTERM, shutdown) signal.signal(signal.SIGINT, shutdown) #ssdp_server = SSDPserver() #ssdp_server.start(Environment.interfaces) castsocket_server = CastSocketServer() castsocket_server.start() bonjour_server = BonjourServer() bonjour_server.start(Environment.uuid, Environment.friendlyName) leap_server = LEAPserver() leap_server.start()
def main(): parse_cmd() if sys.platform == 'darwin' and environ.get('TMUX') is not None: logger.error('Running Chrome inside tmux on OS X might cause problems.' ' Please start leapcast outside tmux.') sys.exit(1) def shutdown(signum, frame): ssdp_server.shutdown() leap_server.sig_handler(signum, frame) signal.signal(signal.SIGTERM, shutdown) signal.signal(signal.SIGINT, shutdown) ssdp_server = SSDPserver() ssdp_server.start(Environment.interfaces) leap_server = LEAPserver() leap_server.start()
def main(): parse_cmd() logging.basicConfig(level=Environment.verbosity) if sys.platform == 'darwin' and environ.get('TMUX') is not None: logger.error('Running Chrome inside tmux on OS X might cause problems.' ' Please start leapcast outside tmux.') sys.exit(1) def shutdown(signum, frame): ssdp_server.shutdown() leap_server.sig_handler(signum, frame) signal.signal(signal.SIGTERM, shutdown) signal.signal(signal.SIGINT, shutdown) ssdp_server = SSDPserver() ssdp_server.start() leap_server = LEAPserver() leap_server.start()