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

Method send_client_credentials

implementation/routing/src/routing_manager_stub.cpp:745–758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

743}
744
745void routing_manager_stub::send_client_credentials(const client_t _target, std::set<std::pair<uid_t, gid_t>>& _credentials) {
746
747 if (auto its_endpoint = find_local_routing_endpoint(_target); its_endpoint) {
748 protocol::update_security_credentials_command its_command;
749 its_command.set_client(_target);
750 its_command.set_credentials(_credentials);
751
752 std::vector<byte_t> its_buffer;
753 its_command.serialize(its_buffer);
754
755 send_local(its_endpoint, its_buffer);
756 } else
757 VSOMEIP_ERROR_P << "Sending credentials to client [" << hex4(_target) << "] failed";
758}
759
760void routing_manager_stub::send_client_routing_info(const client_t _target, protocol::routing_info_entry& _entry) {
761

Callers

nothing calls this directly

Calls 4

hex4Function · 0.85
set_credentialsMethod · 0.80
set_clientMethod · 0.45
serializeMethod · 0.45

Tested by

no test coverage detected