Why? I think Client can get the server address when the reponse back and the call finish?eg.onClose or onMessage
在 2016年5月25日星期三 UTC+8下午11:01:56,Kun Zhang写道: > > No, we don't have a plan yet. Because the server address is unknown when > the call is started, the API would be different from the one with which you > get the client address on the server. When and why do you need the peer > address? > On May 25, 2016 12:57 AM, <[email protected] <javascript:>> wrote: > >> Are there any plans to get the peer address on the client? >> >> On Tuesday, May 3, 2016 at 5:24:50 PM UTC-7, Eric Anderson wrote: >>> >>> On Tue, May 3, 2016 at 5:15 PM, <[email protected]> wrote: >>> >>>> I'm fairly new to grpc and grpc java so I wasn't sure what it's called. >>>> I didn't know there is a context that you can use so I will change my code >>>> to have a single central "auth policy" interceptor. >>>> >>> >>> Context is fairly new (since maybe 0.12?). I know I didn't explain a lot >>> in my response (interceptors, how to use Context), so if you have trouble >>> implementing it please feel free to ask follow-up questions. >>> >>> We've also not documented the "auth policy" pattern yet, so your >>> question was a good one. >>> >> -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/40ee9eef-e454-40db-98e8-95d74585db98%40googlegroups.com.
