예제 #1
0
파일: pubsub.py 프로젝트: victorlin/txZMQ
 def __init__(self, factory, socket=None, callback=None):
     if socket is None:
         socket = factory.socket(zmq.SUB)
     ZmqConnection.__init__(self, factory, socket, callback)
예제 #2
0
 def __init__(self, factory, *endpoints):
     ZmqConnection.__init__(self, factory, *endpoints)
     self._routing_info = {}  # keep track of routing info
예제 #3
0
파일: pubsub.py 프로젝트: victorlin/txZMQ
 def __init__(self, factory, socket=None):
     if socket is None:
         socket = factory.socket(zmq.PUB)
     ZmqConnection.__init__(self, factory, socket)
예제 #4
0
 def __init__(self, *args, **kwargs):
     ZmqConnection.__init__(self, *args, **kwargs)
     self._routingInfo = {}  # keep track of routing info
예제 #5
0
 def __init__(self, factory, *endpoints):
     ZmqConnection.__init__(self, factory, *endpoints)
     self._requests = {}
예제 #6
0
 def __init__(self, *args, **kwargs):
     ZmqConnection.__init__(self, *args, **kwargs)
     self._requests = {}
     self._uuids = []
예제 #7
0
파일: reqrep.py 프로젝트: victorlin/txZMQ
 def __init__(self, factory, callback, socket=None):
     if socket is None:
         socket = factory.socket(zmq.ROUTER)
     self.req_callback = callback
     self._routing_info = {}  # keep track of routing info
     ZmqConnection.__init__(self, factory, socket, self.messageReceived)
예제 #8
0
파일: reqrep.py 프로젝트: victorlin/txZMQ
 def __init__(self, factory, socket=None):
     if socket is None:
         socket = factory.socket(zmq.DEALER)
     self._requests = {}
     self._timeout_calls = {}
     ZmqConnection.__init__(self, factory, socket, self.messageReceived)
예제 #9
0
파일: req_rep.py 프로젝트: valkhyr/txZMQ
 def __init__(self, factory, endpoint=None):
     ZmqConnection.__init__(self, factory, endpoint)
     self._routingInfo = {}  # keep track of routing info
예제 #10
0
파일: req_rep.py 프로젝트: valkhyr/txZMQ
 def __init__(self, factory, endpoint=None):
     ZmqConnection.__init__(self, factory, endpoint)
     self._requests = {}
     self._uuids = []