Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] get service id implementation #1875

Merged
merged 3 commits into from
Jan 8, 2025

Conversation

rex-schilasky
Copy link
Contributor

Description

Implements GetServiceId for CServiceClient and CServiceServer.

@rex-schilasky rex-schilasky added the cherry-pick-to-NONE Don't cherry-pick these changes label Jan 7, 2025
@rex-schilasky rex-schilasky added this to the eCAL 6 milestone Jan 7, 2025
@rex-schilasky rex-schilasky requested a review from Peguen January 7, 2025 08:46
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

ecal/core/src/service/ecal_service_client_impl.cpp Outdated Show resolved Hide resolved
ecal/core/src/service/ecal_service_server_impl.cpp Outdated Show resolved Hide resolved
service_id.service_id.host_name = Process::GetHostName();

service_id.service_name = m_service_name;
service_id.method_name = "";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the method_name an empty string?

Copy link
Contributor Author

@rex-schilasky rex-schilasky Jan 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The method_name field is used in other internal contexts (for example as key in ServiceIdInfoMap) but here the method name makes no sense. I will introduce a new SServiceId type additional to the existing SServiceMethodId for now. The new type will cover service and client instance id's and the other one will be used to get ID's of service-methods. Let me try .. ;-)

…SServiceMethodId type when method name is not needed
@rex-schilasky rex-schilasky mentioned this pull request Jan 8, 2025
84 tasks
@rex-schilasky rex-schilasky merged commit b3023ae into master Jan 8, 2025
20 checks passed
@rex-schilasky rex-schilasky deleted the core/get-service-id-implementation branch January 8, 2025 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-to-NONE Don't cherry-pick these changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants