Пример #1
0
 def __init__(self, emit_addr=EMIT_ADDR, reg_addr=REG_ADDR, path_prefix=None):
     """
     Initialize the events server.
     """
     TxZmqClientComponent.__init__(self, path_prefix=path_prefix)
     EventsClient.__init__(self, emit_addr, reg_addr)
     # connect SUB first, otherwise we might miss some event sent from this
     # same client
     self._sub = self._zmq_connect(txzmq.ZmqSubConnection, reg_addr)
     self._sub.gotMessage = self._gotMessage
     self._push = self._zmq_connect(txzmq.ZmqPushConnection, emit_addr)
Пример #2
0
 def __init__(self,
              emit_addr=EMIT_ADDR,
              reg_addr=REG_ADDR,
              path_prefix=None):
     """
     Initialize the events server.
     """
     TxZmqClientComponent.__init__(self, path_prefix=path_prefix)
     EventsClient.__init__(self, emit_addr, reg_addr)
     # connect SUB first, otherwise we might miss some event sent from this
     # same client
     self._sub = self._zmq_connect(txzmq.ZmqSubConnection, reg_addr)
     self._sub.gotMessage = self._gotMessage
     self._push = self._zmq_connect(txzmq.ZmqPushConnection, emit_addr)
Пример #3
0
 def shutdown(self):
     TxZmqClientComponent.shutdown(self)
     EventsClient.shutdown(self)
Пример #4
0
 def shutdown(self):
     TxZmqClientComponent.shutdown(self)
     EventsClient.shutdown(self)
Пример #5
0
 def shutdown(self):
     EventsClient.shutdown(self)
Пример #6
0
 def shutdown(self):
     EventsClient.shutdown(self)