vsomeip
vsomeip copied to clipboard
send_multicast_offer_service() is actually sending unicast sd msg instead of multicast sd message
Hello Community, I have a doubt in v3.3.8 vsomeip code.
void service_discovery_impl::send_unicast_offer_service(
const std::shared_ptr<const serviceinfo> &_info) {
std::shared_ptr<runtime> its_runtime = runtime_.lock();
if (!its_runtime) {
return;
}
auto its_offer_message(std::make_shared<message_impl>());
std::vector<std::shared_ptr<message_impl> > its_messages;
its_messages.push_back(its_offer_message);
insert_offer_service(its_messages, _info);
serialize_and_send(its_messages, current_remote_address_);
}
void service_discovery_impl::send_multicast_offer_service(
const std::shared_ptr<const serviceinfo> &_info) {
auto its_offer_message(std::make_shared<message_impl>());
std::vector<std::shared_ptr<message_impl> > its_messages;
its_messages.push_back(its_offer_message);
insert_offer_service(its_messages, _info);
serialize_and_send(its_messages, current_remote_address_);
}
- How send_unicast_offer_service() and send_multicast_offer_service() different from each other?
- why we have to use current_remote_address_ in send_multicast_offer_service()?
- When i check pcap log, send_multicast_offer_service() is actually sending the unicast sd msg instead of the multicast sd msg