Bumping this thread to see if there are any recommendations. What I am trying to do is identify a particular client connection the moment it connects to my service and associate future rpc calls with the same connection. I'd also like to know if the connection is closed (for whatever reason).
Thanks. On Tuesday, November 22, 2016 at 10:05:18 AM UTC-8, [email protected] wrote: > > Hi, > > In C++, is there a way to identify the stream id of a client who is making > the rpc call? > > If not, is ServerContext::peer() a reliable way to go about it? From > documentation I understand that peer() value is never authenticated or > subject to any security related code. But I am hoping it'd be reliable if > not compromised (meaning different rpc calls from the same peer always > return the same value). One downside of this approach is that this call > always makes an allocation. So if there is a way to get the stream id of > the peer, that'd be nice. > > > Thanks > Arpit > > > > > -- 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/c89e3aa0-15e0-4941-b5a7-216de8dd6554%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
