From ff08e5d092641ca99ef9e9bf372adb743bab26b2 Mon Sep 17 00:00:00 2001 From: Lutz Bichler Date: Tue, 19 Aug 2014 12:50:38 +0200 Subject: Bugfix: routing info was not correctly read at proxy side. --- examples/request-sample.cpp | 5 +++++ examples/response-sample.cpp | 2 ++ 2 files changed, 7 insertions(+) (limited to 'examples') diff --git a/examples/request-sample.cpp b/examples/request-sample.cpp index 3125291..04c815a 100644 --- a/examples/request-sample.cpp +++ b/examples/request-sample.cpp @@ -50,6 +50,11 @@ public: this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3)); + app_->register_availability_handler(SAMPLE_SERVICE_ID + 1, SAMPLE_INSTANCE_ID, + std::bind(&client_sample::on_availability, + this, + std::placeholders::_1, std::placeholders::_2, std::placeholders::_3)); + app_->register_message_handler( vsomeip::ANY_SERVICE, SAMPLE_INSTANCE_ID, vsomeip::ANY_METHOD, std::bind(&client_sample::on_message, diff --git a/examples/response-sample.cpp b/examples/response-sample.cpp index 43f4abe..fe2f1c8 100644 --- a/examples/response-sample.cpp +++ b/examples/response-sample.cpp @@ -45,10 +45,12 @@ class service_sample { void offer() { app_->offer_service(SAMPLE_SERVICE_ID, SAMPLE_INSTANCE_ID); + app_->offer_service(SAMPLE_SERVICE_ID + 1, SAMPLE_INSTANCE_ID); } void stop_offer() { app_->stop_offer_service(SAMPLE_SERVICE_ID, SAMPLE_INSTANCE_ID); + app_->stop_offer_service(SAMPLE_SERVICE_ID + 1, SAMPLE_INSTANCE_ID); } void on_event(vsomeip::event_type_e _event) { -- cgit v1.2.1