Skip to content

How can server implementation stub determine the IP address of a client #712

Closed Answered by duartenfonseca
srl100 asked this question in Q&A
Discussion options

You must be logged in to vote
  • 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

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@srl100
Comment options

@duartenfonseca
Comment options

@srl100
Comment options

@duartenfonseca
Comment options

Answer selected by duartenfonseca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants