| 350 | } |
| 351 | |
| 352 | client_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 | |
| 372 | client_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); |
nothing calls this directly
no test coverage detected