Esempio n. 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)
Esempio n. 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)
Esempio n. 3
0
 def shutdown(self):
     TxZmqClientComponent.shutdown(self)
     EventsClient.shutdown(self)
Esempio n. 4
0
 def shutdown(self):
     TxZmqClientComponent.shutdown(self)
     EventsClient.shutdown(self)
Esempio n. 5
0
 def shutdown(self):
     EventsClient.shutdown(self)
Esempio n. 6
0
 def shutdown(self):
     EventsClient.shutdown(self)