(self, event, remote_event, connection_name, channel=None)
return node.send(remote_event)
Send event to peer

        Event handler to run an event on peer (the event definition is
        :class:`circuits.node.events.remote`)

        :param event:    The event triggered (by the handler)
        :type event:     :class:`circuits.node.events.remote`

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

        :param connection_name:    Connection name (peer selection).
        :type connection_name:     str

        :param channel:    Remote channel (channel to use on peer).
        :type channel:     str

        :return: The result of remote event
        :rtype: generator

        :Example:
        ``# hello is your event to execute remotely
        # peer_test is peer name
        result = yield self.fire(remote(hello())), 'peer_test')
        print(result.value)``
Send event to peer
Send event to peer
def __on_remote(self, event, remote_event, connection_name, channel=None):
        """Send event to peer

        Event handler to run an event on peer (the event definition is
        :class:`circuits.node.events.remote`)

        :param event:    The event triggered (by the handler)
        :type event:     :class:`circuits.node.events.remote`

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

        :param connection_name:    Connection name (peer selection).
        :type connection_name:     str

        :param channel:    Remote channel (channel to use on peer).
        :type channel:     str

        :return: The result of remote event
        :rtype: generator

        :Example:
        ``# hello is your event to execute remotely
        # peer_test is peer name
        result = yield self.fire(remote(hello())), 'peer_test')
        print(result.value)``
        """
        node = self.__peers[connection_name]
        remote_event.channels = (channel,) if channel is not None \
            else event.channels
        return node.send(remote_event)
def __on_remote ( self , event , remote_event , connection_name , channel = None ) : node = self . __peers [ connection_name ] remote_event . channels = ( channel , ) if channel is not None else event . channels return node . send ( remote_event )