def __init__(self, host, port, websocketclass, certfile, keyfile, version = ssl.PROTOCOL_TLSv1): SimpleWebSocketServer.__init__(self, host, port, websocketclass) self.cerfile = certfile self.keyfile = keyfile self.version = version
def __init__(self, host, port, websocketclass, selectInterval=0.1): SimpleWebSocketServer.__init__(self, host, port, websocketclass, selectInterval) self._lock_clients = threading.Lock() self._clients = []
def __init__(self, host='', port=9999, skipframes=0, **kwargs): self.host = host self.port = port self.skipframes = skipframes + 1 SimpleWebSocketServer.__init__(self, host, port, BotIOChromeExtensionSocket, selectInterval=0.1) Framework.Framework.__init__(self, **kwargs) self.serveforever()
def __init__(self, host, port, websocketclass): SimpleWebSocketServer.__init__(self, host, port, websocketclass) # Lancement du serveur bluetooth serverBT = BluetoothServer(self) serverBT.setDaemon(True) serverBT.start() self.serveforever()
def __init__(self, system): from . import skeleton SimpleWebSocketServer.__init__(self, '', 9121, _DlalWebSocket) self.root = _Root( weakref.proxy(system), skeleton, lambda: FREE, ) self.store = {} self.thread = threading.Thread(target=_serve, args=(weakref.ref(self),)) self.thread.daemon = True self.thread.start()
def __init__(self, app): SimpleWebSocketServer.__init__(self, '', 8080, SimpleEcho) QObject.__init__(self) th = threading.Thread(target=self.serveforever) th.daemon = True th.start() self.app = app for id, iesmas in app.stendas.iesmai.iteritems(): iesmas.stateChanged.connect(self.onSwitchChanged) for train in app.trains: train.signalChanged.connect(self.onTrainChanged) train.speedChanged.connect(self.onTrainChanged) for ruozas in app.stendas.ruozai: ruozas.stateChanged.connect(self.onRoadChanged)
def __init__(self, context, *args, **kwargs): self.context = context SimpleWebSocketServer.__init__(self, *args, **kwargs)
def __init__(self, ghostObj, *args, **kwargs): self.ghost = ghostObj SimpleWebSocketServer.__init__(self, *args, **kwargs)
def __init__(self, base): SimpleWebSocketServer.__init__(self, base.bind_address, base.port, base.socket_imp_class, selectInterval=0.1) self.base = base