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