examples/rpc-client.py
def _send_request(self):
        """Send a message containing the RPC method call
        """
        msg = Message()
        msg.subject = "An RPC call!"
        msg.address = self._to
        msg.reply_to = self._reply_to
        msg.body = self._method
        msg.correlation_id = 5  # whatever...

        print("sending RPC call request: %s" % str(self._method))
        # @todo send timeout self._sender.send(msg, self, None, time.time() +
        # 10)
        self._sender.send(msg, self)
def _send_request(self):
        msg = Message()
        msg.subject = "An RPC call!"
        msg.address = self._to
        msg.reply_to = self._reply_to
        msg.body = self._method
        msg.correlation_id = 5  # whatever...

        print("sending RPC call request: %s" % str(self._method))
        # @todo send timeout self._sender.send(msg, self, None, time.time() +
        # 10)
        self._sender.send(msg, self)
def _send_request ( self ) : msg = Message ( ) msg . subject = "An RPC call!" msg . address = self . _to msg . reply_to = self . _reply_to msg . body = self . _method msg . correlation_id = 5 # whatever... print ( "sending RPC call request: %s" % str ( self . _method ) ) # @todo send timeout self._sender.send(msg, self, None, time.time() + # 10) self . _sender . send ( msg , self )
Send a message containing the RPC method call
Send a message containing the RPC method call