| 74 | } |
| 75 | |
| 76 | std::shared_ptr<message> runtime_impl::create_response(const std::shared_ptr<message>& _request) const { |
| 77 | auto its_response = std::make_shared<message_impl>(); |
| 78 | its_response->set_service(_request->get_service()); |
| 79 | its_response->set_instance(_request->get_instance()); |
| 80 | its_response->set_method(_request->get_method()); |
| 81 | its_response->set_client(_request->get_client()); |
| 82 | its_response->set_session(_request->get_session()); |
| 83 | its_response->set_interface_version(_request->get_interface_version()); |
| 84 | its_response->set_message_type(message_type_e::MT_RESPONSE); |
| 85 | its_response->set_return_code(return_code_e::E_OK); |
| 86 | its_response->set_reliable(_request->is_reliable()); |
| 87 | return its_response; |
| 88 | } |
| 89 | |
| 90 | std::shared_ptr<message> runtime_impl::create_notification(bool _reliable) const { |
| 91 | auto its_notification = std::make_shared<message_impl>(); |