#NEWLINE# @ handler ( 'remote' , channel = '*' ) #NEWLINE# def __on_remote( self , event , remote_event , connection_name , channel = None ) : #NEWLINE# #INDENT# "Send event to peer\n\n        Event handler to run an event on peer (the event definition is\n        :class:`circuits.node.events.remote`)\n\n        :param event:    The event triggered (by the handler)\n        :type event:     :class:`circuits.node.events.remote`\n\n        :param remote_event:    Event to execute remotely.\n        :type remote_event:     :class:`circuits.core.events.Event`\n\n        :param connection_name:    Connection name (peer selection).\n        :type connection_name:     str\n\n        :param channel:    Remote channel (channel to use on peer).\n        :type channel:     str\n\n        :return: The result of remote event\n        :rtype: generator\n\n        :Example:\n        ``# hello is your event to execute remotely\n        # peer_test is peer name\n        result = yield self.fire(remote(hello())), 'peer_test')\n        print(result.value)``\n        " #NEWLINE# node = self . __peers [ connection_name ] #NEWLINE# remote_event . channels = ( ( channel , ) if ( channel is not None ) else event . channels ) #NEWLINE# return node . send ( remote_event )