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

Method send_local

implementation/routing/src/routing_manager_base.cpp:181–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179// ********************************* PROTECTED **************************************
180
181bool routing_manager_base::send_local(std::shared_ptr<local_endpoint>& _target, client_t _client, const byte_t* _data, uint32_t _size,
182 instance_t _instance, bool _reliable, protocol::id_e _command, uint8_t _status_check,
183 client_t _sender) const {
184
185 protocol::send_command its_command(_command);
186 its_command.set_client(_sender);
187 its_command.set_instance(_instance);
188 its_command.set_reliable(_reliable);
189 its_command.set_status(_status_check);
190 its_command.set_target(_client);
191 its_command.set_message(std::vector<byte_t>(_data, _data + _size));
192
193 std::vector<byte_t> its_buffer;
194 its_command.serialize(its_buffer);
195
196 return _target->send(&its_buffer[0], uint32_t(its_buffer.size()));
197}
198
199std::shared_ptr<serializer> routing_manager_base::get_serializer() {
200

Callers

nothing calls this directly

Calls 9

set_statusMethod · 0.80
set_targetMethod · 0.80
set_clientMethod · 0.45
set_instanceMethod · 0.45
set_reliableMethod · 0.45
set_messageMethod · 0.45
serializeMethod · 0.45
sendMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected