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

Method on_state

examples/request-sample.cpp:84–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 }
83
84 void on_state(vsomeip::state_type_e _state) {
85 if (_state == vsomeip::state_type_e::ST_REGISTERED) {
86 app_->request_service(SAMPLE_SERVICE_ID, SAMPLE_INSTANCE_ID);
87 }
88 }
89
90 void on_availability(vsomeip::service_t _service, vsomeip::instance_t _instance, bool _is_available) {
91 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