(self, config=None)
Create a new instance of zmqHandler class
Create a new instance of zmqHandler class
Create a new instance of zmqHandler class
def __init__(self, config=None):
        """
          Create a new instance of zmqHandler class
        """

        # Initialize Handler
        Handler.__init__(self, config)

        if not zmq:
            self.log.error('zmq import failed. Handler disabled')
            self.enabled = False
            return

        # Initialize Data
        self.context = None

        self.socket = None

        # Initialize Options
        self.port = int(self.config['port'])

        # Create ZMQ pub socket and bind
        self._bind()
def __init__ ( self , config = None ) : # Initialize Handler Handler . __init__ ( self , config ) if not zmq : self . log . error ( 'zmq import failed. Handler disabled' ) self . enabled = False return # Initialize Data self . context = None self . socket = None # Initialize Options self . port = int ( self . config [ 'port' ] ) # Create ZMQ pub socket and bind self . _bind ( )