Beispiel #1
0
 def __init__(self, host, port, eventLoop):
     AlgebraicProtocol.__init__(self, ServerToClient, ClientToServer)
     self.loop = eventLoop
     self.lock = threading.Lock()
     self.host = host
     self.port = port
     self.handler = None
     self.msgs = []
     self.disconnected = False
     self._stopHeartbeatingSet = False
     self._logger = logging.getLogger(__name__)
 def __init__(self, messageToSend, responseQueue):
     AlgebraicProtocol.__init__(self, Message, Message)
     self.messageToSend = messageToSend
     self.responseQueue = responseQueue
 def __init__(self):
     AlgebraicProtocol.__init__(self, Message, Message)
Beispiel #4
0
 def __init__(self, dbserver, loop):
     AlgebraicProtocol.__init__(self, ClientToServer, ServerToClient)
     self.dbserver = dbserver
     self.loop = loop
     self.connectionIsDead = False
     self._logger = logging.getLogger(__name__)