(self, host, port, channel=channel,
                 receive_event_firewall=None, send_event_firewall=None,
                 **kwargs)
Create new connection for a node.

        :param hostname:    hostname to connect.
        :type hostname:     str

        :param port:    port to connect.
        :type port:     int

        :param channel: An optional keyword argument which if defined,
                        set channel used for node event.
                        **Default:** ``node_client``
        :type channel:  str

        :param receive_event_firewall:  An optional keyword argument which if
                                        defined, function or method to call for
                                        check if event is allowed for sending.
                                        **Default:** ``None`` (no firewall)
        :type receive_event_firewall:   function
        :type receive_event_firewall:   method

        :param send_event_firewall:  An optional keyword argument which if
                                    defined, function or method to call for
                                    check if event is allowed for executing
                                    **Default:** ``None`` (no firewall)
        :type send_event_firewall:   function
        :type send_event_firewall:   method
Create new connection for a node.
Create new connection for a node .
def __init__(self, host, port, channel=channel,
                 receive_event_firewall=None, send_event_firewall=None,
                 **kwargs):
        """Create new connection for a node.

        :param hostname:    hostname to connect.
        :type hostname:     str

        :param port:    port to connect.
        :type port:     int

        :param channel: An optional keyword argument which if defined,
                        set channel used for node event.
                        **Default:** ``node_client``
        :type channel:  str

        :param receive_event_firewall:  An optional keyword argument which if
                                        defined, function or method to call for
                                        check if event is allowed for sending.
                                        **Default:** ``None`` (no firewall)
        :type receive_event_firewall:   function
        :type receive_event_firewall:   method

        :param send_event_firewall:  An optional keyword argument which if
                                    defined, function or method to call for
                                    check if event is allowed for executing
                                    **Default:** ``None`` (no firewall)
        :type send_event_firewall:   function
        :type send_event_firewall:   method
        """
        super(Client, self).__init__(channel=channel, **kwargs)

        self.__host = host
        self.__port = port
        self.__protocol = Protocol(
            receive_event_firewall=receive_event_firewall,
            send_event_firewall=send_event_firewall,
            channel=channel
        ).register(self)

        TCPClient(channel=channel, **kwargs).register(self)
def __init__ ( self , host , port , channel = channel , receive_event_firewall = None , send_event_firewall = None , * * kwargs ) : super ( Client , self ) . __init__ ( channel = channel , * * kwargs ) self . __host = host self . __port = port self . __protocol = Protocol ( receive_event_firewall = receive_event_firewall , send_event_firewall = send_event_firewall , channel = channel ) . register ( self ) TCPClient ( channel = channel , * * kwargs ) . register ( self )