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

Method assign_client

implementation/endpoints/src/local_server.cpp:352–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352client_t local_server::tmp_connection::assign_client(uint8_t const* _data, uint32_t const _message_size) {
353
354 std::vector<byte_t> its_data(_data, _data + _message_size);
355 protocol::assign_client_command command;
356 protocol::error_e ec;
357
358 command.deserialize(its_data, ec);
359 if (ec != protocol::error_e::ERROR_OK) {
360 VSOMEIP_ERROR_P << "Assign client command deserialization failed (" << static_cast<int>(ec) << ")";
361 return VSOMEIP_CLIENT_UNSET;
362 }
363
364 auto client_id = utility::request_client_id(configuration_, command.get_name(), command.get_client());
365
366 routing_address_ = command.get_address();
367 routing_port_ = command.get_port();
368
369 return client_id;
370}
371
372client_t local_server::tmp_connection::read_config_command(uint8_t const* _data, uint32_t _message_size, bool& _version_matches) {
373 std::vector<byte_t> its_data(_data, _data + _message_size);

Callers

nothing calls this directly

Calls 5

deserializeMethod · 0.45
get_nameMethod · 0.45
get_clientMethod · 0.45
get_addressMethod · 0.45
get_portMethod · 0.45

Tested by

no test coverage detected