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

Method request_service

implementation/routing/src/routing_manager_base.cpp:154–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void routing_manager_base::request_service(client_t _client, service_t _service, instance_t _instance, major_version_t _major,
155 minor_version_t _minor) {
156 auto its_info = find_service(_service, _instance);
157 if (its_info) {
158 if (_major == its_info->get_major() || DEFAULT_MAJOR == its_info->get_major() || ANY_MAJOR == _major) {
159 its_info->add_client(_client);
160 } else {
161 VSOMEIP_ERROR_P << "Service property mismatch (" << hex4(_client) << "): [" << hex4(_service) << "." << hex4(_instance) << ":"
162 << static_cast<std::uint32_t>(its_info->get_major()) << "." << its_info->get_minor()
163 << "] passed: " << static_cast<std::uint32_t>(_major) << ":" << _minor;
164 }
165 }
166}
167
168void routing_manager_base::release_service(client_t _client, service_t _service, instance_t _instance) {
169 auto its_info = find_service(_service, _instance);

Callers 1

on_messageMethod · 0.45

Calls 4

hex4Function · 0.85
get_majorMethod · 0.45
add_clientMethod · 0.45
get_minorMethod · 0.45

Tested by

no test coverage detected