Apologies for multiple emails. It just occurred to me that the topic of my
post is incorrect. What I am really looking for is the client/peer
connection establishment/closed event (and not really the stream id of rpc
call - I am having a hard time trying to recall why I asked for that in the
first place :) ).

On Mon, Nov 28, 2016 at 2:27 PM, <[email protected]> wrote:

> 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 a topic in the
> Google Groups "grpc.io" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/grpc-io/z6aEEiaeopM/unsubscribe.
> To unsubscribe from this group and all its topics, 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
> <https://groups.google.com/d/msgid/grpc-io/c89e3aa0-15e0-4941-b5a7-216de8dd6554%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAL2p%3D0nTEq9mExTnvqY8z2%2Bx0NYFt0Dtjp9XsegdmBstwpfgqg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to