示例#1
0
    def setUp(self):
        from sputnik import zmq_util
        import random

        port = random.randint(50000, 60000)
        self.dealer_proxy = zmq_util.dealer_proxy_async("tcp://127.0.0.1:%d" % port, timeout=None)
        self.router_share = zmq_util.router_share_async(TestExport(), "tcp://127.0.0.1:%d" % port)
示例#2
0
 def __init__(self):
     BackendPlugin.__init__(self)
     self.proxy = dealer_proxy_async(
             config.get("administrator", "webserver_export"))
示例#3
0
 def __init__(self):
     BackendPlugin.__init__(self)
     self.proxy = dealer_proxy_async(
         config.get("administrator", "webserver_export"))
示例#4
0
 def setUp(self):
     from sputnik import zmq_util
     import random
     port = random.randint(50000, 60000)
     self.dealer_proxy = zmq_util.dealer_proxy_async("tcp://127.0.0.1:%d" % port, timeout=None)
     self.router_share = zmq_util.router_share_async(TestExport(), "tcp://127.0.0.1:%d" % port)