vsomeip icon indicating copy to clipboard operation
vsomeip copied to clipboard

send_multicast_offer_service() is actually sending unicast sd msg instead of multicast sd message

Open oblesh6 opened this issue 1 year ago • 0 comments

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_);
}
  1. How send_unicast_offer_service() and send_multicast_offer_service() different from each other?
  2. why we have to use current_remote_address_ in send_multicast_offer_service()?
  3. When i check pcap log, send_multicast_offer_service() is actually sending the unicast sd msg instead of the multicast sd msg

oblesh6 avatar Dec 27 '23 08:12 oblesh6