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

Method send_notification

implementation/routing/src/routing_manager_impl.cpp:641–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

639}
640
641bool routing_manager_impl::send_notification(client_t _client, std::shared_ptr<message> _message, bool _force) {
642 bool is_sent(false);
643 std::shared_ptr<serializer> its_serializer(get_serializer());
644 if (its_serializer->serialize(_message.get())) {
645 auto const sec_client = get_sec_client();
646 is_sent = send(_client, its_serializer->get_data(), its_serializer->get_size(), _message->get_instance(), _message->is_reliable(),
647 get_client(), &sec_client, 0, false, _force);
648 its_serializer->reset();
649 put_serializer(its_serializer);
650 } else {
651 VSOMEIP_ERROR_P << "Failed to serialize message. Check message size!";
652 }
653 return is_sent;
654}
655
656bool routing_manager_impl::send(client_t _client, const byte_t* _data, length_t _size, instance_t _instance, bool _reliable,
657 [[maybe_unused]] client_t _bound_client, [[maybe_unused]] const vsomeip_sec_client_t* _sec_client,

Callers 1

sendMethod · 0.80

Calls 7

serializeMethod · 0.45
getMethod · 0.45
get_dataMethod · 0.45
get_sizeMethod · 0.45
get_instanceMethod · 0.45
is_reliableMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected