Exemplo n.º 1
0
 def __init__(self):
     super(DispatchServer, self).__init__()
     self.sender = ZMQUtils.create_bind_push(addr)
     self.counter = 1
Exemplo n.º 2
0
 def _init_zmq(self, zmq_addr):
     self.sender = ZMQUtils.create_bind_push(zmq_addr)
Exemplo n.º 3
0
 def __init__(self):
     super(PushServer, self).__init__()
     self.sender = ZMQUtils.create_bind_push(addr)
     self.index = 0
Exemplo n.º 4
0
 def _init_zmq(self, zmq_addr):
     self.sender = ZMQUtils.create_bind_push(zmq_addr)
Exemplo n.º 5
0
 def __init__(self):
     self.syncer = ZMQUtils.create_bind_pull(sync_addr)
     self.puber = ZMQUtils.create_bind_push(pub_addr, 100)
     self.puber.setsockopt(zmq.SWAP, 100000)