示例#1
0
    def __init__(self, conf, matchmaker):
        sender = zmq_senders.RequestSenderDirect(conf, async=True)
        receiver = zmq_receivers.ReceiverDirect(conf)
        super(DealerPublisherDirect, self).__init__(conf, matchmaker, sender,
                                                    receiver)

        self.routing_table = zmq_routing_table.RoutingTableAdaptor(
            conf, matchmaker, zmq.ROUTER)
    def __init__(self, conf, matchmaker):
        sender = zmq_senders.RequestSenderProxy(conf)
        receiver = zmq_receivers.ReceiverDirect(conf)
        super(DealerPublisherProxyDynamic,
              self).__init__(conf, matchmaker, sender, receiver)

        self.publishers = set()
        self.updater = DynamicPublishersUpdater(conf, matchmaker,
                                                self.publishers)
        self.updater.update_publishers()