How can server implementation stub determine the IP address of a client #712
-
As detailed in issue #679, in a vsomeip/CommonAPI stub implementation, how can the server determine the IP address of the client that triggers a call to a method? |
Beta Was this translation helpful? Give feedback.
Answered by
duartenfonseca
Aug 30, 2024
Replies: 1 comment 7 replies
-
Did you already got running between 2 different clients, so that you can observe with wireshark the trace between them ? Project with fidl and generated with cgen and build etc. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For CAPI the interface the _client->getHostAddress() will only return the routing HOST address of the local tcp communication. If unix domain sockets are used instead, there will be no address.
vsomeip-lib also doesn't provide this as an interface.
The design of CommonAPI (and also vsomeip) is to keep away the user from the underlying network. That´s why all the IP addresses, ports, etc are provided by the vsomeip configuration and not by an API. If an application requires this information for whatever reason, these are the wrong libraries to use.
The feature that could be added here on COVESA would be having the possibility to get that information for debugging purposes only