(self, event, sock, no_result=False)
return iterator
Send event to peer

        :param event:    Event to execute remotely.
        :type event:     :class:`circuits.core.events.Event`

        :param sock:    Client's socket (peer selection).
        :type sock:     :class:`socket.socket`

        :param no_result:   An optional keyword argument which if True
                            don't return the event result.
                            **Default:** ``False`` (wait the result)
        :type no_result:     bool

        :return: The result of remote event
        :rtype: generator
Send event to peer
Send event to peer
def send(self, event, sock, no_result=False):
        """Send event to peer

        :param event:    Event to execute remotely.
        :type event:     :class:`circuits.core.events.Event`

        :param sock:    Client's socket (peer selection).
        :type sock:     :class:`socket.socket`

        :param no_result:   An optional keyword argument which if True
                            don't return the event result.
                            **Default:** ``False`` (wait the result)
        :type no_result:     bool

        :return: The result of remote event
        :rtype: generator
        """
        iterator = self.__protocols[sock].send(event)
        if no_result:
            event.node_without_result = True
            try:
                next(iterator)
            except StopIteration:
                pass
        return iterator
def send ( self , event , sock , no_result = False ) : iterator = self . __protocols [ sock ] . send ( event ) if no_result : event . node_without_result = True try : next ( iterator ) except StopIteration : pass return iterator