Hi,

I have a server with multiple listening ports:

*for (auto &address : addresses) {*

*  builder.AddListeningPort(address, credentials);*
*}*

I would like to identify on which listening port of server a client is 
connected.
We can get a connected client address by using: *ServerContext::peer()*

Similarly, I tried to get server address by using 
*FromServerContext(*m_serverContext)->peer()* after successful 
authentication, but the string was empty.

Is there any way to get server address ?

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/a333b596-56fa-4351-a84d-a5b83292beea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to