Exemplo n.º 1
0
 def __init__(self):
     super(CollectorServer, self).__init__()
     self.receiver = ZMQUtils.create_bind_pull(addr)
     self.counter = 0
     self.acc = 0
Exemplo n.º 2
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)
Exemplo n.º 3
0
 def __init__(self):
     super(CollectorServer, self).__init__()
     self.receiver = ZMQUtils.create_bind_pull(addr)
     self.counter = 0
     self.acc = 0
Exemplo n.º 4
0
 def __init__(self):
     self.syncer = ZMQUtils.create_bind_pull(sync_addr)
     self.puber = ZMQUtils.create_bind_pub(pub_addr)