MCPcopy Create free account
hub / github.com/COVESA/vsomeip / on_state

Method on_state

examples/subscribe-sample.cpp:61–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 }
60
61 void on_state(vsomeip::state_type_e _state) {
62 if (_state == vsomeip::state_type_e::ST_REGISTERED) {
63 app_->request_service(SAMPLE_SERVICE_ID, SAMPLE_INSTANCE_ID);
64 }
65 }
66
67 void on_availability(vsomeip::service_t _service, vsomeip::instance_t _instance, bool _is_available) {
68 std::cout << "Service [" << std::hex << std::setfill('0') << std::setw(4) << _service << "." << _instance << "] is "

Callers

nothing calls this directly

Calls 1

request_serviceMethod · 0.45

Tested by

no test coverage detected