How to use the pyzmq.helloword.src.core.handlers.Handler.__init__ function in pyzmq

To help you get started, we’ve selected a few pyzmq examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zeromq / cookbook / pyzmq / helloword / src / core / View on Github external
def __init__(self, name, frontend_point, backend_point, context = None, loop = None):
        Handler.__init__(self,  name, frontend_point, backend_point, context, loop)

        self._frontend = self._context.socket(zmq.ROUTER)
        self._frontend.setsockopt(zmq.IDENTITY,'FRONTEND-{0}'.format( self._name))

        self._backend = self._context.socket(zmq.DEALER)
        self._backend.setsockopt(zmq.IDENTITY,'BACKEND-{0}'.format( self._name))

        self._stream_frontend = zmqstream.ZMQStream(self._frontend)

        self._stream_backend = zmqstream.ZMQStream(self._backend)

        self.log = logging.getLogger(__name__)


Python bindings for 0MQ

Latest version published 3 months ago

Package Health Score

97 / 100
Full package analysis

Similar packages