Exemplo n.º 1
0
    def __init__(self, **kwargs):
        # setup the initial default configuration
        self.delay = 0
        self.file = None
        self.message = 'Testing 1, 2, 3'
        self.repeat = False

        self.CONFIGURE_INPUT = False # Signal Brick not to configure input socket
        Brick.__init__(self, **kwargs)
Exemplo n.º 2
0
    def __init__(self, **kwargs):
        # set up the initial default configuration
        self.input_sock_url = 'tcp://localhost:6687'
        self.input_sock_type = "PULL"

        self.output_sock_url = 'tcp://*:6688'
        self.output_sock_type = "PUSH"

        Brick.__init__(self, **kwargs)
Exemplo n.º 3
0
    def __init__(self, **kwargs):
        # set up the initial default configuration
        self.input_sock_url = 'tcp://localhost:6687'
        self.input_sock_type = "PULL"

        self.output_sock_url = 'tcp://*:6688'
        self.output_sock_type = "PUSH"

        Brick.__init__(self, **kwargs)
Exemplo n.º 4
0
    def __init__(self, **kwargs):
        # setup the initial default configuration
        self.file = None

        # todo: raul - this is cheesy, and needs to be replaced with a more
        # elegant method of setting the handler.
        self.input_recv_handler = self._listener_recv_handler

        self.CONFIGURE_OUTPUT = False # Signal Brick not to configure output socket
        Brick.__init__(self, **kwargs)