Previous Table of Contents Next


7.2.8 sendp


   sendp initiates an operation according to the information in the Request and returns a reference to a MessageRouting::PersistentRequest as a CORBA::Object. As with send, the results of invocations made with sendp will be available once the caller uses get_response or get_next_response. The out parameters and return value must not be used before the operation is done. A new CORBA::Request may be constructed (in this same or a different process) and used to poll for the response to this request by calling create_request, properly associating the out arguments and return value with that request and then passing the PersistentRequest reference to the new Request’s prepare (described below). The caller can then invoke get_response or get_next_response to obtain the operation results.

   As with send, sendc may raise a standard system exception if a failure is detected before control is returned to the client, but this is not guaranteed. All other exceptions will be raised when get_response is called.