Open dayangshanbaoye opened 2 weeks ago
Hi, thanks for your investigations.
Do you want to contribute? If you want, you can fix the mentioned points and assign the issue to you.
Do you want to contribute? If you want, you can fix the mentioned points and assign the issue to you.
I'm glad to contribute, thanks for your invitation
While reading someip_sd_builder.py, I found a few parts that are a bit hard to understand, and I think they might be errors. Could you please take a moment to review them?
Error 1: The internal code of the build_offer_service_sd_header method and the build_stop_offer_service_sd_header method is identical. Would it be possible to merge these methods and use ttl to differentiate between offering and stopping the offer? Additionally, in the build_stop_offer_service_sd_header method, SdEntryType.OFFER_SERVICE is used instead of SdEntryType.STOP_OFFER_SERVICE.
Error 2: Should the build_subscribe_eventgroup_entry method be renamed to build_subscribe_eventgroup_sd_header? Since it also returns a SomeIpSdHeader object, this name might be more appropriate.
Error3: Should the build_find_service_sd_header method be implemented?